Function at 0x597347
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x18c]
stosd dword es:[edi], eax
xor esi, esi
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push esi
push eax
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x184], esi
mov dword [ebp - 0x180], esi
call 0x5bd0d8
push 0xf8
lea eax, [ebp - 0x13c]
push esi
push eax
call 0x5bd0d8
or dword [ebx], 0xffffffff
xor eax, eax
add esp, 0x18
lea edi, [ebp - 0x164]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x15c]
rep stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x170]
push eax
mov dword [ebp - 0x17c], esi
mov dword [ebp - 0x178], esi
mov dword [ebp - 0x194], esi
call 0x5c6d1c
mov esi, eax
test esi, esi
jns 0x5973f6
push 0x43b084
push esi
call 0x5c4d2e
pop ecx
pop ecx
jmp 0x59787e
push 0
push pe_nt_image_headers32
push 3
push 0
push 5
push 0x80000000
push dword [ebp - 0x170]
call dword [0x43a0f4]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x597460
call dword [0x43a224]
test eax, eax
jle 0x59742f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x59743a
mov esi, 0x80004005
push esi
push 0x45
push 0x43ad14
call 0x5c7bf6
push dword [ebp - 0x170]
push 0x43b050
push esi
call 0x5c4d2e
add esp, 0xc
jmp 0x59787e
mov edi, dword [0x43a0f0]
push 0
push 0
push dword [ebp - 0x188]
push dword [ebp - 0x18c]
push eax
call edi
test eax, eax
jne 0x5974b3
call dword [0x43a224]
test eax, eax
jle 0x597491
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x59749c
mov esi, 0x80004005
push esi
push 0x4c
push 0x43ad14
call 0x5c7bf6
push 0x43b02c
jmp 0x5973e9
mov esi, dword [0x43a0ec]
push 0
lea eax, [ebp - 0x168]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x597506
call dword [0x43a224]
test eax, eax
jle 0x5974e4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x5974ef
mov esi, 0x80004005
push esi
push 0x52
push 0x43ad14
call 0x5c7bf6
push 0x43b010
jmp 0x5973e9
cmp dword [ebp - 0x168], 0x40
jb 0x59751a
mov eax, 0x5a4d
cmp ax, word [ebp - 0x44]
je 0x597536
mov esi, 0x8007000d
push esi
push 0x57
push 0x43ad14
call 0x5c7bf6
push 0x43afdc
jmp 0x5973e9
mov eax, dword [ebp - 8]
push 0
cdq
push 0
push edx
push eax
push dword [ebx]
call edi
test eax, eax
jne 0x59757e
call dword [0x43a224]
test eax, eax
jle 0x59755c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x597567
mov esi, 0x80004005
push esi
push 0x62
push 0x43ad14
call 0x5c7bf6
push 0x43afbc
jmp 0x5973e9
push 0
lea eax, [ebp - 0x168]
push eax
push 0x18
lea eax, [ebp - 0x13c]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x5975ce
call dword [0x43a224]
test eax, eax
jle 0x5975ac
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x5975b7
mov esi, 0x80004005
push esi
push 0x68
push 0x43ad14
call 0x5c7bf6
push 0x43afa0
jmp 0x5973e9
cmp dword [ebp - 0x168], 0x18
jb 0x5975e3
cmp dword [ebp - 0x13c], 0x4550
je 0x5975ff
mov esi, 0x8007000d
push esi
push 0x6d
push 0x43ad14
call 0x5c7bf6
push 0x43af70
jmp 0x5973e9
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x58]
mov dword [ebp - 0x190], ecx
xor ecx, ecx
push ecx
push ecx
add eax, 0x98
push ecx
push eax
push dword [ebx]
mov dword [ebp - 0x188], eax
call edi
test eax, eax
jne 0x59765a
call dword [0x43a224]
test eax, eax
jle 0x597638
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x597643
mov esi, 0x80004005
push esi
push 0x78
push 0x43ad14
call 0x5c7bf6
push 0x43af50
jmp 0x5973e9
push 0
lea eax, [ebp - 0x168]
push eax
push 4
lea eax, [ebp - 0x17c]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x5976aa
call dword [0x43a224]
test eax, eax
jle 0x597688
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x597693
mov esi, 0x80004005
push esi
push 0x7d
push 0x43ad14
call 0x5c7bf6
push 0x43af2c
jmp 0x5973e9
push 0
lea eax, [ebp - 0x168]
push eax
push 4
lea eax, [ebp - 0x178]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x5976fd
call dword [0x43a224]
test eax, eax
jle 0x5976d8
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x5976e3
mov esi, 0x80004005
push esi
push 0x82
push 0x43ad14
call 0x5c7bf6
push 0x43af0c
jmp 0x5973e9
movzx eax, word [ebp - 0x128]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx + 0x18]
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push dword [ebx]
call edi
test eax, eax
jne 0x597752
call dword [0x43a224]
test eax, eax
jle 0x59772d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x597738
mov esi, 0x80004005
push esi
push 0x8d
push 0x43ad14
call 0x5c7bf6
push 0x43aee4
jmp 0x5973e9
and dword [ebp - 0x174], 0
push 0
lea eax, [ebp - 0x168]
push eax
push 0x28
lea eax, [ebp - 0x164]
push eax
push dword [ebx]
call esi
test eax, eax
je 0x5977e8
mov dword [ebp - 0x16c], 1
cmp dword [ebp - 0x168], 0x28
jb 0x597827
push 8
pop ecx
mov edi, 0x43aed8
lea esi, [ebp - 0x164]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x5977a3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5978a5
movzx eax, word [ebp - 0x136]
cmp dword [ebp - 0x16c], eax
jae 0x59784c
inc dword [ebp - 0x174]
inc dword [ebp - 0x16c]
push 0
lea eax, [ebp - 0x168]
push eax
push 0x28
lea eax, [ebp - 0x164]
push eax
push dword [ebx]
call dword [0x43a0ec]
test eax, eax
jne 0x59777d
call dword [0x43a224]
test eax, eax
jle 0x5977fc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x597807
mov esi, 0x80004005
push esi
push 0x96
push 0x43ad14
call 0x5c7bf6
push dword [ebp - 0x174]
push 0x43aea8
jmp 0x597452
mov esi, 0x8007000d
push esi
push 0x9b
push 0x43ad14
call 0x5c7bf6
push dword [ebp - 0x174]
push 0x43ae70
jmp 0x597452
mov esi, 0x8007000d
push esi
push 0xa9
push 0x43ad14
call 0x5c7bf6
push 0x43ae50
push esi
call 0x5c4d2e
mov edi, dword [ebp - 0x194]
pop ecx
pop ecx
test edi, edi
je 0x59787e
push edi
call 0x5c779e
cmp dword [ebp - 0x170], 0
je 0x597892
push dword [ebp - 0x170]
call 0x5c5490
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call 0x5bd152
leave
ret 4
cmp dword [ebp - 0x154], 0x34
jae 0x5978d3
mov esi, 0x8007000d
push esi
push 0xb5
push 0x43ad14
call 0x5c7bf6
push dword [ebp - 0x154]
push 0x43ae20
jmp 0x597452
push 1
push dword [ebp - 0x154]
call 0x5c75e3
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x597907
mov esi, 0x8007000e
push esi
push 0xba
push 0x43ad14
call 0x5c7bf6
push 0x43adf4
jmp 0x5973e9
mov eax, dword [ebp - 0x150]
push esi
push esi
xor ecx, ecx
push ecx
push eax
push dword [ebx]
call dword [0x43a0f0]
test eax, eax
jne 0x59795e
call dword [0x43a224]
cmp eax, esi
jle 0x597933
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x59793e
mov esi, 0x80004005
push esi
push 0xc0
push 0x43ad14
call 0x5c7bf6
push 0x43af50
push esi
call 0x5c4d2e
jmp 0x597872
mov eax, dword [ebp - 0x150]
add eax, 0x1c
push esi
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x154]
push edi
push dword [ebx]
call dword [0x43a0ec]
test eax, eax
jne 0x5979be
call dword [0x43a224]
cmp eax, esi
jle 0x59799c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x5979a7
mov esi, 0x80004005
push esi
push 0xc9
push 0x43ad14
call 0x5c7bf6
push 0x43add4
jmp 0x597953
mov eax, dword [ebp - 0x154]
cmp eax, dword [ebp - 0x168]
jbe 0x5979eb
mov esi, 0x8007000d
push esi
push 0xce
push 0x43ad14
call 0x5c7bf6
push 0x43adac
jmp 0x597953
cmp dword [edi + 4], 2
je 0x597a19
mov esi, 0x8007000d
push esi
push 0xd5
push 0x43ad14
call 0x5c7bf6
push dword [edi + 4]
push 0x43ad74
push esi
call 0x5c4d2e
jmp 0x597af5
lea eax, [ebp - 0x184]
push eax
push dword [ebx]
call 0x5ca952
mov esi, eax
test esi, esi
jns 0x597a37
push 0x43ad50
jmp 0x597953
mov eax, dword [edi + 0x18]
mov dword [ebx + 4], eax
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x597a49
mov eax, dword [edi + 0x24]
jmp 0x597a59
mov ecx, dword [ebp - 0x17c]
test ecx, ecx
je 0x597a60
mov eax, dword [ebp - 0x178]
add eax, ecx
mov dword [ebx + 8], eax
jmp 0x597a68
mov ecx, dword [edi + 0x30]
add ecx, eax
mov dword [ebx + 8], ecx
mov eax, dword [ebp - 0x184]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x180]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x190]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x188]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x30], eax
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x34], eax
push 1
shl eax, 2
push eax
call 0x5c75e3
mov dword [ebx + 0x38], eax
test eax, eax
jne 0x597ae4
mov esi, 0x8007000e
push esi
push 0xf8
push 0x43ad14
call 0x5c7bf6
push 0x43ad20
jmp 0x597953
mov ecx, dword [ebx + 0x34]
shl ecx, 2
push ecx
lea ecx, [edi + 0x30]
push ecx
push eax
call 0x5bd168
add esp, 0xc
jmp 0x597874