Function at 0x46fd00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x519100]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x2c], eax
push edi
push 2
mov dword [esp + 0x30], edx
mov eax, dword [esi + 0x44]
mov edi, dword [esi + 0x40]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x44]
push eax
push 0
push 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
call fcn.00473330
test al, al
je 0x46feb2
mov eax, 0x5a4d
cmp word [esp + 0x40], ax
jne 0x46feb2
push 4
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
push 0
push 0x3c
call fcn.00473330
test al, al
je 0x46feb2
push 4
lea eax, [esp + 0x48]
mov ecx, esi
push eax
push 0
push dword [esp + 0x44]
call fcn.00473330
test al, al
je 0x46feb2
cmp dword [esp + 0x44], 0x4550
jne 0x46feb2
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x14
push eax
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.00473010
test al, al
je 0x46feb2
cmp dword [esp + 0x3c], 0x14
je 0x46fdeb
mov dword [esi + 0x60], 0x1e
jmp 0x46feb2
mov ecx, dword [esp + 0x38]
mov edx, 0x8664
mov ax, word [esp + 0x48]
add ecx, 0x98
cmp ax, dx
je 0x46fe22
mov edx, 0x200
cmp ax, dx
je 0x46fe22
mov edx, 0x284
cmp ax, dx
je 0x46fe22
mov edx, 0xaa64
cmp ax, dx
jne 0x46fe25
add ecx, 0x10
push 4
lea eax, [esp + 0x40]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00473330
test al, al
je 0x46feb2
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46feb2
mov edi, eax
xor eax, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], eax
cmp edi, 7
jbe 0x46feae
mov ebx, dword [esp + 0x10]
mov eax, 7
nop dword [eax]
dec eax
lea edx, [esp + 0x37]
mov dword [esp + 0x24], eax
mov ecx, edi
sub ecx, 1
mov eax, ebx
push 1
sbb eax, 0
mov dword [esp + 0x24], ecx
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.00473330
test al, al
je 0x46fe9a
cmp byte [esp + 0x37], 0
jne 0x46fe9a
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x46fe60
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jl 0x46ff66
jg 0x46fec9
cmp edi, 0x48
jb 0x46ff66
mov esi, edi
lea eax, [esp + 0x5c]
push 8
sub esi, 8
mov edi, ecx
mov ecx, dword [esp + 0x20]
push eax
sbb edi, 0
push edi
push esi
call fcn.00473330
test al, al
je 0x46ff19
lea eax, [esp + 0x5c]
cmp dword [eax], 0x53575341
jne 0x46ff19
cmp dword [eax + 4], 0x42336769
jne 0x46ff19
mov dword [esp + 0x10], 0x40
test ebx, ebx
je 0x47024e
mov dword [ebx], 7
jmp 0x47024e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jne 0x46ff2f
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x10], edx
je 0x46ff6a
mov edi, dword [esp + 0x10]
mov esi, eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x64]
push 8
sub esi, 8
push eax
sbb edi, 0
push edi
push esi
call fcn.00473330
test al, al
je 0x46ff66
lea eax, [esp + 0x64]
cmp dword [eax], 0x53575341
jne 0x46ff66
cmp dword [eax + 4], 0x42336769
je 0x46fefe
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x4700d7
jg 0x46ff84
cmp ecx, 0xc0
jb 0x470013
mov esi, ecx
mov edi, eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x6c]
push 8
sub esi, 0x80
push eax
sbb edi, 0
push edi
push esi
call fcn.00473330
test al, al
je 0x46ffc0
lea eax, [esp + 0x6c]
cmp dword [eax], 0x53575341
jne 0x46ffc0
cmp dword [eax + 4], 0x42336769
je 0x46fefe
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
jne 0x46ffd4
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x10], esi
je 0x470026
mov edi, dword [esp + 0x10]
mov esi, eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x74]
push 8
sub esi, 0x80
push eax
sbb edi, 0
push edi
push esi
call fcn.00473330
test al, al
je 0x470026
lea eax, [esp + 0x74]
cmp dword [eax], 0x53575341
jne 0x470026
cmp dword [eax + 4], 0x42336769
jne 0x470026
jmp 0x46fefe
test eax, eax
jl 0x4700d7
jg 0x470026
cmp ecx, 0x48
jb 0x4700d7
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x7c]
mov edi, dword [esp + 0x18]
sub esi, 8
mov ecx, dword [esp + 0x1c]
push 8
push eax
sbb edi, 0
push edi
push esi
call fcn.00473330
test al, al
je 0x47007a
lea eax, [esp + 0x7c]
cmp dword [eax], 0x53575341
jne 0x47007a
cmp dword [eax + 4], 0x42326769
jne 0x47007a
mov dword [esp + 0x10], 0x40
test ebx, ebx
je 0x47024e
mov dword [ebx], 5
jmp 0x47024e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jne 0x470090
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x10], edx
je 0x4700dd
mov edi, dword [esp + 0x10]
mov esi, eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x84]
push 8
sub esi, 8
push eax
sbb edi, 0
push edi
push esi
call fcn.00473330
test al, al
je 0x4700cd
lea eax, [esp + 0x84]
cmp dword [eax], 0x53575341
jne 0x4700cd
cmp dword [eax + 4], 0x42326769
je 0x47005f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x4700df
mov ecx, dword [esp + 0x14]
jmp 0x4700df
mov eax, edx
test eax, eax
jl 0x4702c3
jg 0x4700f2
cmp ecx, 0x78
jb 0x470189
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x8c]
mov esi, ecx
mov ecx, dword [esp + 0x1c]
push 8
sub esi, 0x38
push eax
sbb edi, 0
push edi
push esi
call fcn.00473330
test al, al
je 0x470133
lea eax, [esp + 0x8c]
cmp dword [eax], 0x53575341
jne 0x470133
cmp dword [eax + 4], 0x42326769
je 0x47005f
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
jne 0x470147
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x10], esi
je 0x47019c
mov edi, dword [esp + 0x10]
mov esi, eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x94]
push 8
sub esi, 0x38
push eax
sbb edi, 0
push edi
push esi
call fcn.00473330
test al, al
je 0x47019c
lea eax, [esp + 0x94]
cmp dword [eax], 0x53575341
jne 0x47019c
cmp dword [eax + 4], 0x42326769
jne 0x47019c
jmp 0x47005f
test eax, eax
jl 0x4702c3
jg 0x47019c
cmp ecx, 0x30
jb 0x4702c3
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x9c]
mov edi, dword [esp + 0x18]
sub esi, 8
mov ecx, dword [esp + 0x1c]
push 8
push eax
sbb edi, 0
push edi
push esi
call fcn.00473330
test al, al
je 0x4701db
lea eax, [esp + 0x9c]
cmp dword [eax], 0x53575341
jne 0x4701db
cmp dword [eax + 4], 0x646e6769
je 0x47023c
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
jne 0x4701f3
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x10], ecx
je 0x4702c3
mov edi, dword [esp + 0x10]
mov esi, eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xa4]
push 8
sub esi, 8
push eax
sbb edi, 0
push edi
push esi
call fcn.00473330
test al, al
je 0x4702c3
lea eax, [esp + 0xa4]
cmp dword [eax], 0x53575341
jne 0x4702c3
cmp dword [eax + 4], 0x646e6769
jne 0x4702c3
mov dword [esp + 0x10], 0x28
test ebx, ebx
je 0x47024e
mov dword [ebx], 1
mov ebx, dword [esp + 0x10]
sub esi, ebx
push ecx
mov ecx, dword [esp + 0x20]
sbb edi, 0
push edi
push esi
call fcn.00472f80
mov ecx, dword [esp + 0x2c]
mov al, 1
mov byte [esp + 0x37], al
test ecx, ecx
je 0x4702a1
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ebx
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00473010
test al, al
je 0x470299
cmp dword [esp + 0x38], ebx
je 0x47029d
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x60], 0x1e
xor al, al
jmp 0x4702a1
mov al, byte [esp + 0x37]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4702c5
mov dword [ecx], esi
mov dword [ecx + 4], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0048471b
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048471b
mov esp, ebp
pop ebp
ret