Function at 0x1037958
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [0x10a8a0c]
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x88], 0xc00000e5
jne 0x10379b3
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x94], 0x1005040
call fcn.010202e5
mov ebx, dword [ebp - 0x88]
jmp 0x1037df4
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0x10]
push ebx
push 0x40
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [esi]
pop edx
mov ecx, esi
mov dword [ebp - 0x74], ebx
call dword [eax]
cmp eax, ebx
jge 0x10379e4
mov ebx, eax
jmp 0x1037df4
cmp dword [ebp - 0x74], 0x40
jne 0x10379f2
cmp word [ebp - 0x6c], 0x5a4d
je 0x1037a08
mov esi, 0xc0000102
push esi
push 1
push ebx
push ebx
call fcn.0103f55c
mov ebx, esi
jmp 0x1037df4
mov eax, dword [ebp - 0x30]
push edi
mov edi, dword [esi]
lea ecx, [ebp - 0x74]
push ecx
cdq
lea ecx, [ebp - 0x98]
push ecx
push edx
push eax
push 4
pop edx
mov ecx, esi
mov dword [ebp - 0x98], ebx
call dword [edi]
cmp eax, ebx
jge 0x1037a34
mov ebx, eax
jmp 0x1037df3
cmp dword [ebp - 0x74], 4
je 0x1037a50
mov esi, 0xc0000102
push esi
push 1
push ebx
push ebx
call fcn.0103f55c
mov ebx, esi
jmp 0x1037df3
cmp dword [ebp - 0x98], 0x4550
jne 0x1037a3a
mov eax, dword [ebp - 0x30]
mov edi, dword [esi]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0xe0]
push edx
xor ecx, ecx
push ecx
add eax, 4
push eax
push 0x14
pop edx
mov ecx, esi
call dword [edi]
cmp eax, ebx
jl 0x1037a2d
cmp dword [ebp - 0x74], 0x14
jne 0x1037a3a
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x74]
push edi
add eax, 0x18
cdq
lea edi, [ebp - 0x1e0]
push edi
push edx
push eax
mov eax, dword [esi]
mov edi, pe_nt_image_headers32
mov edx, edi
mov ecx, esi
call dword [eax]
cmp eax, ebx
jl 0x1037a2d
cmp dword [ebp - 0x74], edi
jne 0x1037a3a
cmp word [ebp - 0x1e0], 0x20b
sete al
cmp al, bl
je 0x1037b04
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x70]
push edi
add eax, 0x18
cdq
lea edi, [ebp - 0x1e0]
push edi
push edx
push eax
mov eax, dword [esi]
mov edi, 0xf0
mov edx, edi
mov ecx, esi
mov dword [ebp - 0x70], ebx
call dword [eax]
cmp eax, ebx
jl 0x1037a2d
cmp dword [ebp - 0x70], edi
jne 0x1037a3a
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x15c]
jmp 0x1037b13
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x16c]
cmp eax, ebx
je 0x1037df3
cmp word [ebp - 0xde], bx
movzx eax, word [ebp - 0xd0]
mov ecx, dword [ebp - 0x30]
lea eax, [eax + ecx + 0x18]
cdq
mov edi, eax
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x70], ebx
jbe 0x1037df3
mov eax, dword [esi]
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x7c]
mov ecx, esi
push edi
push 0x28
pop edx
mov dword [ebp - 0x84], ebx
call dword [eax]
cmp eax, ebx
jl 0x1037a2d
cmp dword [ebp - 0x84], 0x28
jne 0x1037a3a
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x78]
je 0x1037b94
movzx eax, word [ebp - 0xde]
add edi, 0x28
adc dword [ebp - 0x7c], ebx
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], eax
jb 0x1037b3f
jmp 0x1037df3
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xcc]
push ecx
push ebx
push edi
sub eax, edi
push 0x10
mov dword [ebp - 0x84], eax
mov eax, dword [esi]
pop edx
mov ecx, esi
mov dword [ebp - 0x7c], ebx
call dword [eax]
cmp eax, ebx
jl 0x1037a2d
cmp dword [ebp - 0x74], 0x10
jne 0x1037a3a
movzx eax, word [ebp - 0xc0]
lea eax, [eax*8 + 0x10]
add edi, eax
adc dword [ebp - 0x7c], ebx
cmp word [ebp - 0xbe], bx
mov dword [ebp - 0x70], ebx
jbe 0x1037df3
mov eax, dword [esi]
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x8c]
push ecx
push dword [ebp - 0x7c]
mov ecx, esi
push edi
push 8
pop edx
mov dword [ebp - 0x78], ebx
call dword [eax]
cmp eax, ebx
jl 0x1037a2d
cmp dword [ebp - 0x78], 8
jne 0x1037a3a
cmp word [ebp - 0x8c], 0x18
je 0x1037c3e
movzx eax, word [ebp - 0xbe]
add edi, 8
adc dword [ebp - 0x7c], ebx
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], eax
jb 0x1037bed
jmp 0x1037df3
mov edi, dword [ebp - 0x88]
mov eax, dword [esi]
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xbc]
push ecx
and edi, 0x7fffffff
add edi, dword [ebp - 0x18]
push ebx
push edi
push 0x10
pop edx
mov ecx, esi
mov dword [ebp - 0x7c], ebx
call dword [eax]
cmp eax, ebx
jl 0x1037a2d
cmp dword [ebp - 0x74], 0x10
jne 0x1037a3a
movzx eax, word [ebp - 0xb0]
lea eax, [eax*8 + 0x10]
add edi, eax
adc dword [ebp - 0x7c], ebx
cmp word [ebp - 0xae], bx
mov dword [ebp - 0x70], ebx
jbe 0x1037df3
mov eax, dword [esi]
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x8c]
push ecx
push dword [ebp - 0x7c]
mov ecx, esi
push edi
push 8
pop edx
mov dword [ebp - 0x78], ebx
call dword [eax]
cmp eax, ebx
jl 0x1037a2d
cmp dword [ebp - 0x78], 8
jne 0x1037a3a
movzx eax, word [ebp - 0x8c]
cmp eax, dword [ebp - 0x9c]
je 0x1037cf1
movzx eax, word [ebp - 0xae]
add edi, 8
adc dword [ebp - 0x7c], ebx
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], eax
jb 0x1037c9b
jmp 0x1037df3
mov edi, dword [ebp - 0x88]
mov eax, dword [esi]
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xac]
push ecx
and edi, 0x7fffffff
add edi, dword [ebp - 0x18]
push ebx
push edi
push 0x10
pop edx
mov ecx, esi
mov dword [ebp - 0x7c], ebx
call dword [eax]
cmp eax, ebx
jl 0x1037a2d
cmp dword [ebp - 0x74], 0x10
jne 0x1037a3a
movzx eax, word [ebp - 0xa0]
lea eax, [eax*8 + 0x10]
add edi, eax
adc dword [ebp - 0x7c], ebx
cmp word [ebp - 0x9e], bx
mov dword [ebp - 0x70], ebx
jbe 0x1037df3
mov eax, dword [esi]
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x8c]
push ecx
push dword [ebp - 0x7c]
mov ecx, esi
push edi
push 8
pop edx
mov dword [ebp - 0x78], ebx
call dword [eax]
cmp eax, ebx
jl 0x1037a2d
cmp dword [ebp - 0x78], 8
jne 0x1037a3a
movzx eax, word [ebp - 0x8c]
cmp eax, dword [ebp + 8]
je 0x1037d9e
movzx eax, word [ebp - 0x9e]
add edi, 8
adc dword [ebp - 0x7c], ebx
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], eax
jb 0x1037d4e
jmp 0x1037df3
mov edx, dword [ebp - 0x18]
mov eax, dword [esi]
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xf0]
push ecx
mov ecx, dword [ebp - 0x88]
add ecx, edx
push ebx
push ecx
push 0x10
pop edx
mov ecx, esi
call dword [eax]
cmp eax, ebx
jl 0x1037a2d
cmp dword [ebp - 0x74], 0x10
jne 0x1037a3a
mov ecx, dword [ebp - 0xf0]
sub ecx, dword [ebp - 0x84]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xec]
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
pop ebx
call fcn.0103ec19
leave
ret 0xc