Function at 0x451c50
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x1e8]
mov esi, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 8], esi
test byte [esi + 0x3c], 1
je 0x451c75
xor eax, eax
pop esi
add esp, 0x20
ret
mov ecx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x30]
push edi
lea ecx, [ecx + ecx*4]
shl ecx, 4
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
lea edx, [eax + 8]
add edx, ecx
cmp dword [esp + 0x40], 0
mov dword [esp + 0xc], edx
mov ecx, dword [edx + 0x30]
mov edi, dword [edx + 0x14]
mov dword [esp + 0x18], ecx
je 0x451cea
cmp dword [esp + 0x3c], 0
jne 0x451d11
cmp dword [eax], 1
jg 0x451d11
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x451cc6
test dword [eax + 4], 0x200000
jne 0x451d11
push dword [ebp]
call fcn.00484b80
add esp, 4
test eax, 0x200000
jne 0x451d11
push dword [ebp + 0x30]
call fcn.00484b80
add esp, 4
test eax, 0x200000
jne 0x451d11
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x20]
test eax, eax
je 0x451cfa
cmp dword [ebp + 0x3c], 0
jne 0x451d11
cmp dword [edi + 0x40], 0
jne 0x451d11
movzx edx, word [ebp + 6]
test dl, dl
jns 0x451d0c
test eax, eax
jne 0x451d11
cmp dword [ecx], 0
jne 0x451d1a
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x20
ret
push ebx
movzx ebx, word [edi + 6]
test bl, 1
jne 0x451ee0
test eax, eax
je 0x451d44
mov ecx, dword [esp + 0x18]
cmp dword [ecx], 1
jg 0x451ee0
cmp dword [esp + 0x40], 0
jne 0x451ee0
mov ecx, edx
and ecx, 1
je 0x451d56
cmp dword [esp + 0x44], 0
jne 0x451ee0
cmp dword [ebp + 0x30], 0
je 0x451d66
cmp dword [edi + 0x30], 0
jne 0x451ee0
cmp dword [esp + 0x40], 0
je 0x451d77
cmp dword [edi + 0x30], 0
jne 0x451ee0
test eax, eax
je 0x451d92
cmp dword [ebp + 0x24], 0
jne 0x451ee0
test eax, eax
je 0x451d92
test cx, cx
jne 0x451ee0
test ebx, 0x3000
jne 0x451ee0
test edx, 0x2000
je 0x451db0
cmp dword [edi + 0x34], 0
jne 0x451ee0
mov eax, dword [esp + 0x10]
test byte [eax + 0x24], 0x20
jne 0x451ee0
cmp dword [edi + 0x34], 0
lea ebx, [edi + 0x34]
je 0x451e44
cmp dword [edi + 0x30], 0
jne 0x451ee0
cmp dword [esp + 0x40], 0
jne 0x451ee0
test cx, cx
jne 0x451ee0
mov eax, dword [esp + 0x18]
cmp dword [eax], 1
jne 0x451ee0
test byte [edi + 6], 9
jne 0x451ee0
mov ecx, dword [edi + 0x34]
test ecx, ecx
je 0x451e0d
cmp byte [edi + 4], 0x74
jne 0x451ee0
mov eax, dword [edi + 0x20]
cmp dword [eax], 1
jl 0x451ee0
mov edi, ecx
test edi, edi
jne 0x451df2
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x451e44
mov edx, dword [eax]
test edx, edx
jle 0x451e44
mov eax, dword [eax + 4]
add eax, 0x14
cmp word [eax], 0
je 0x451ee0
inc ecx
add eax, 0x18
cmp ecx, edx
jl 0x451e32
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
push 0
push 0
mov eax, dword [ecx + 8]
push 0
push 0x15
push edi
mov dword [edi + 0x1e8], eax
call fcn.00477e30
mov eax, dword [esp + 0x38]
add esp, 0x14
mov dword [edi + 0x1e8], eax
mov eax, dword [ebx]
mov dword [esp + 0x24], eax
test eax, eax
je 0x451f23
mov edi, edi
mov eax, dword [ebp + 0x34]
mov ebx, dword [ebp + 0x30]
mov edi, dword [ebp + 0x3c]
mov esi, dword [ebp + 0x40]
push 0
push ebp
push dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
call fcn.0049e020
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x20], ecx
mov byte [ebp + 4], 0x74
test eax, eax
jne 0x451eea
mov eax, dword [esp + 0x20]
jmp 0x451efb
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x20
ret
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x34], ecx
test ecx, ecx
je 0x451ef8
mov dword [ecx + 0x38], eax
mov dword [eax + 0x38], ebp
mov esi, dword [esp + 0x14]
mov dword [ebp + 0x34], eax
cmp byte [esi + 0x41], 0
jne 0x452222
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x451e80
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x14]
mov ebx, eax
push dword [ecx + 4]
mov dword [esp + 0x30], eax
push esi
mov dword [esp + 0x28], ebx
call fcn.0047f2c0
mov eax, dword [esp + 0x18]
push dword [eax + 8]
push esi
call fcn.0047f2c0
mov eax, dword [esp + 0x20]
push dword [eax + 0xc]
push esi
call fcn.0047f2c0
mov eax, dword [esp + 0x28]
add esp, 0x18
mov edx, dword [eax + 0x10]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x14], 0
test edx, edx
je 0x451fc0
movzx eax, word [edx + 0x24]
cmp eax, 1
jne 0x451fa7
mov ecx, dword [edi + 0x198]
test ecx, ecx
jne 0x451f96
mov ecx, edi
mov eax, dword [ecx + 0x208]
mov dword [edx + 0x44], eax
mov dword [ecx + 0x208], edx
jmp 0x451fac
dec eax
mov word [edx + 0x24], ax
mov eax, dword [esp + 0x10]
mov dword [eax + 0x10], 0
jmp 0x451fc0
mov ebx, dword [ebx + 0x20]
mov ecx, dword [ebp + 0x20]
mov byte [esp + 0x34], 0
mov dword [esp + 0x18], ecx
mov edi, dword [ebx]
mov dword [esp + 0x24], edi
test ecx, ecx
je 0x451fe2
mov al, byte [eax + 0x24]
mov byte [esp + 0x34], al
jmp 0x452002
push 0
push 0
push 0
push esi
call fcn.0049e620
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x18], ecx
mov dword [ebp + 0x20], ecx
test ecx, ecx
je 0x452213
cmp edi, 1
jle 0x45202e
mov eax, dword [esp + 0x3c]
inc eax
push eax
lea eax, [edi - 1]
push eax
push ecx
push esi
call fcn.0049ec50
mov ecx, eax
add esp, 0x10
mov dword [ebp + 0x20], ecx
cmp byte [esi + 0x41], 0
mov dword [esp + 0x18], ecx
jne 0x452213
test edi, edi
jle 0x452079
mov ebp, dword [esp + 0x28]
add ebx, 8
add ebp, 8
add ebp, ecx
mov edi, edi
push dword [ebp + 0x38]
push esi
call fcn.0048eb40
push 0x50
mov ecx, 0x14
mov esi, ebx
mov edi, ebp
push 0
rep movsd dword es:[edi], dword [esi]
push ebx
call sub.MSVCRT.dll_memset
mov esi, dword [esp + 0x28]
add esp, 0x14
add ebp, 0x50
add ebx, 0x50
dec dword [esp + 0x24]
jne 0x452040
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov al, byte [esp + 0x34]
mov byte [edx + ecx + 0x2c], al
xor ecx, ecx
mov ebx, dword [ebp]
mov dword [esp + 0x34], ecx
cmp dword [ebx], ecx
jle 0x4520ce
xor edi, edi
mov eax, dword [ebx + 4]
cmp dword [edi + eax + 4], 0
jne 0x4520be
push dword [edi + eax + 8]
push esi
call fcn.0047f5f0
mov esi, eax
push esi
call fcn.00480390
mov ecx, dword [ebx + 4]
add esp, 0xc
mov dword [edi + ecx + 4], esi
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
inc ecx
add edi, 0x18
mov dword [esp + 0x34], ecx
cmp ecx, dword [ebx]
jl 0x452094
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push dword [ebx]
push edi
push dword [ebp]
push esi
call fcn.004b4280
add esp, 0x10
cmp dword [esp + 0x40], 0
je 0x45210a
push dword [ebx]
push edi
push dword [ebp + 0x28]
push esi
call fcn.004b4280
push dword [ebx]
push edi
push dword [ebp + 0x2c]
push esi
call fcn.004b41c0
add esp, 0x20
mov dword [ebp + 0x2c], eax
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x452142
xor esi, esi
cmp dword [edx], esi
jle 0x452132
xor ecx, ecx
lea esp, [esp]
mov eax, dword [edx + 4]
lea ecx, [ecx + 0x18]
xor edi, edi
inc esi
mov word [eax + ecx - 4], di
cmp esi, dword [edx]
jl 0x452120
mov esi, dword [esp + 0x14]
mov dword [ebp + 0x30], edx
mov dword [ebx + 0x30], 0
jmp 0x452156
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x452156
push dword [ebx]
push edi
push eax
push esi
call fcn.004b4280
add esp, 0x10
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x45216f
push 0
push 0
push eax
push esi
call fcn.0044f220
add esp, 0x10
mov edi, eax
jmp 0x452171
xor edi, edi
cmp dword [esp + 0x44], 0
mov ecx, dword [esp + 0x1c]
je 0x4521bf
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x24], edi
push dword [ebx]
push ecx
push eax
push esi
call fcn.004b41c0
push 0
push 0
mov dword [ebp + 0x2c], eax
push dword [ebx + 0x2c]
push esi
call fcn.0044f220
push eax
push dword [ebp + 0x2c]
push esi
call fcn.004815b0
push 0
mov dword [ebp + 0x2c], eax
push dword [ebx + 0x28]
push esi
call fcn.004849e0
add esp, 0x38
mov dword [ebp + 0x28], eax
jmp 0x4521dc
push dword [ebx]
push ecx
push dword [ebp + 0x24]
push esi
call fcn.004b41c0
push edi
push eax
push esi
mov dword [ebp + 0x24], eax
call fcn.004815b0
add esp, 0x1c
mov dword [ebp + 0x24], eax
mov ax, word [ebx + 6]
and ax, 1
or word [ebp + 6], ax
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4521f9
mov dword [ebp + 0x3c], eax
mov dword [ebx + 0x3c], 0
mov ebp, dword [ebp + 0x34]
mov ebx, dword [ebx + 0x34]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], ebx
test ebp, ebp
jne 0x451fc0
push 1
push dword [esp + 0x30]
push esi
call fcn.004485b0
add esp, 0xc
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x20
ret