Function at 0x45c190
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
cmp ebx, 0x200
push edi
mov byte [esp + 0x13], 0
jb 0x45c3f7
mov eax, dword [esp + 0x30]
cmp word [eax], 0x5a4d
jne 0x45c3f7
mov edx, dword [eax + 0x3c]
cmp edx, ebx
jae 0x45c3f7
lea ecx, [edx + 0x18]
cmp ecx, ebx
jae 0x45c3f7
lea esi, [edx + eax]
mov dword [esp + 0x28], esi
cmp dword [esi], 0x4550
jne 0x45c3f7
xor ebp, ebp
xor eax, eax
mov bp, word [esi + 6]
mov ax, word [esi + 0x14]
lea ecx, [ebp + ebp*4]
shl ecx, 3
add edx, ecx
test ebp, ebp
lea edi, [edx + eax + 0x18]
lea edx, [eax + esi + 0x18]
mov dword [esp + 0x1c], edx
lea edx, [ecx + edx - 0x28]
mov dword [esp + 0x18], edx
jbe 0x45c3f7
cmp ebp, 0x50
jae 0x45c3f7
cmp edi, ebx
jae 0x45c3f7
cmp eax, ebx
jae 0x45c3f7
cmp edi, dword [esi + 0x54]
ja 0x45c3f7
mov ecx, dword [esi + 0x38]
mov edi, dword [esi + 0x50]
dec ecx
mov eax, ecx
add edi, ecx
not eax
and edi, eax
mov eax, dword [edx + 0xc]
cmp eax, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edi
ja 0x45c3f7
mov edx, dword [edx + 8]
cmp edx, edi
jae 0x45c3f7
add edx, eax
cmp edx, edi
ja 0x45c3f7
mov esi, dword [esi + 0x3c]
dec esi
cmp esi, ecx
mov dword [esp + 0x24], esi
ja 0x45c3f7
test ebp, ebp
mov dword [esp + 0x14], 0
jbe 0x45c368
mov edx, dword [esp + 0x1c]
lea eax, [edx + 0x14]
jmp 0x45c29f
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
mov edx, dword [eax - 8]
cmp edx, edi
ja 0x45c35e
test ecx, edx
jne 0x45c35e
mov esi, dword [eax]
cmp esi, ebx
ja 0x45c35e
mov ecx, dword [eax - 4]
cmp ecx, ebx
ja 0x45c35e
add ecx, esi
cmp ecx, ebx
ja 0x45c35e
mov esi, dword [esp + 0x18]
lea ecx, [eax - 0x14]
cmp ecx, esi
je 0x45c2ec
mov ecx, dword [eax + 0x20]
cmp edx, ecx
ja 0x45c35e
mov esi, dword [eax - 0xc]
add esi, edx
cmp esi, ecx
ja 0x45c35e
mov esi, dword [esp + 0x24]
mov edi, dword [eax]
mov ecx, esi
not ecx
and edi, ecx
mov dword [eax], edi
mov edx, edi
mov edi, dword [eax - 4]
add edi, esi
and edi, ecx
cmp edx, ebx
mov dword [eax - 4], edi
ja 0x45c35a
mov ecx, edi
test ecx, ecx
jl 0x45c35a
mov edi, dword [eax]
mov edx, ebx
sub edx, edi
cmp ecx, edx
jbe 0x45c323
mov ecx, ebx
mov edx, edi
sub ecx, edx
mov dword [eax - 4], ecx
mov edx, dword [esp + 0x18]
lea ecx, [eax - 0x14]
cmp ecx, edx
je 0x45c340
mov ecx, dword [eax + 0x20]
mov esi, dword [eax - 8]
mov edx, dword [eax - 4]
sub ecx, esi
cmp edx, ecx
mov dword [eax - 0xc], ecx
ja 0x45c35a
mov ecx, dword [esp + 0x14]
add eax, 0x28
inc ecx
cmp ecx, ebp
mov dword [esp + 0x14], ecx
jb 0x45c297
mov edi, dword [esp + 0x34]
jmp 0x45c368
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x14], ebp
jb 0x45c3f7
lea edx, [edi + 0x100]
push edx
call dword [0x4b2658]
mov edx, eax
add esp, 4
test edx, edx
je 0x45c3f7
mov ecx, edi
xor eax, eax
mov esi, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x54]
cmp ebx, eax
jae 0x45c39f
mov eax, ebx
mov esi, dword [esp + 0x30]
mov ecx, eax
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
jbe 0x45c3e2
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 0x14]
mov esi, dword [eax]
mov edi, dword [esp + 0x30]
mov ecx, dword [eax - 4]
add esi, edi
mov edi, dword [eax - 8]
mov ebx, ecx
add edi, edx
add eax, 0x28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
dec ebp
rep movsb byte es:[edi], byte [esi]
jne 0x45c3be
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x13], 1
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov dword [ecx], edx
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret