Function at 0x450040
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, 0x5e0fd4
lea esp, [esp]
movzx ecx, word [edi + 0x24]
test cx, cx
jne 0x450063
cmp word [edi + 0x26], cx
je 0x45055f
movzx eax, byte [edi + 0x28]
sub eax, 0
mov dword [esp + 0x14], 0
je 0x4502df
sub eax, 1
je 0x4501e8
sub eax, 1
je 0x4500ed
movzx eax, cx
mov ecx, dword [eax*4 + 0x5eb7d0]
mov eax, dword [ecx + 8]
mov dword [esp + 0x10], ecx
test eax, eax
je 0x4500e6
mov ecx, dword [eax + 0x34]
mov edx, dword [edi - 4]
test ecx, ecx
je 0x45055f
movzx esi, word [eax + 6]
movsx ebx, si
cmp edx, ebx
jl 0x4500c6
test si, si
jle 0x45055f
mov ebp, dword [ecx + ebx*4 - 4]
jmp 0x45036f
mov esi, dword [ecx + edx*4]
movzx ecx, byte [eax + 1]
push ecx
add eax, 0x54
push eax
call fcn.00458bb0
test al, al
je 0x45055f
mov ebp, esi
jmp 0x45036f
mov ebp, dword [ecx]
jmp 0x45036f
movzx edx, word [edi + 0x26]
mov eax, dword [edx*4 + 0x5eb7d0]
mov ebp, dword [eax + 8]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x45036d
call dword [0x604460]
mov ebx, eax
mov eax, dword [edi]
cmp ebx, eax
mov dword [esp + 0x18], ebx
jl 0x45019d
test eax, eax
jne 0x450148
mov eax, dword [edi - 4]
mov ecx, dword [ebp + 0x30]
mov ecx, dword [ecx + eax*8 + 4]
imul ecx, ecx, 0x3e8
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ebx
mov dword [edi], eax
jmp 0x45019d
sub ebx, eax
lea eax, [edi - 4]
push edi
lea esi, [esp + 0x18]
mov ecx, ebp
call fcn.004579f0
test eax, eax
jne 0x450190
mov edx, dword [ebp + 0x30]
mov ecx, dword [edi - 4]
mov ecx, dword [edx + ecx*8 + 4]
imul ecx, ecx, 0x3e8
mov eax, 0x10624dd3
imul ecx
mov ecx, dword [esp + 0x18]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
cmp eax, ebx
mov dword [edi], eax
jle 0x45019d
sub eax, ebx
mov dword [edi], eax
jmp 0x45019d
mov dword [edi - 4], 0
mov dword [edi], 0
mov eax, dword [ebp + 0x34]
mov ecx, dword [edi - 4]
test eax, eax
je 0x45055f
movzx edx, word [ebp + 6]
movsx esi, dx
cmp ecx, esi
jl 0x4501c8
test dx, dx
jle 0x45055f
mov ebp, dword [eax + esi*4 - 4]
jmp 0x45036f
movzx edx, byte [ebp + 1]
mov esi, dword [eax + ecx*4]
push edx
add ebp, 0x54
push ebp
call fcn.00458bb0
test al, al
je 0x45055f
mov ebp, esi
jmp 0x45036f
movzx eax, word [edi + 0x26]
mov eax, dword [eax*4 + 0x5eb7d0]
mov ebp, dword [eax + 8]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x45036d
call dword [0x604460]
mov ebx, eax
mov eax, dword [edi]
cmp ebx, eax
mov dword [esp + 0x18], ebx
jl 0x4502a7
test eax, eax
jne 0x450243
mov edx, dword [ebp + 0x30]
mov ecx, dword [edi - 4]
mov ecx, dword [edx + ecx*8 + 4]
imul ecx, ecx, 0x3e8
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ebx
mov dword [edi], eax
jmp 0x4502a7
sub ebx, eax
lea eax, [edi - 4]
push edi
lea esi, [esp + 0x18]
mov ecx, ebp
call fcn.004579f0
test eax, eax
jne 0x45028b
mov edx, dword [ebp + 0x30]
mov ecx, dword [edi - 4]
mov ecx, dword [edx + ecx*8 + 4]
imul ecx, ecx, 0x3e8
mov eax, 0x10624dd3
imul ecx
mov ecx, dword [esp + 0x18]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
cmp eax, ebx
mov dword [edi], eax
jle 0x4502a7
sub eax, ebx
mov dword [edi], eax
jmp 0x4502a7
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push 0
push 0x80
push edx
mov edx, dword [edi + 0x20]
call fcn.0044fe90
add esp, 0xc
mov eax, dword [ebp + 0x34]
mov ecx, dword [edi - 4]
test eax, eax
je 0x45055f
movzx edx, word [ebp + 6]
movsx esi, dx
cmp ecx, esi
jl 0x4502d2
test dx, dx
jle 0x45055f
mov ebp, dword [eax + esi*4 - 4]
jmp 0x45036f
mov esi, dword [eax + ecx*4]
movzx eax, byte [ebp + 1]
push eax
jmp 0x4501d0
movzx ecx, word [edi + 0x26]
mov eax, dword [ecx*4 + 0x5eb7d0]
mov esi, dword [eax + 8]
mov dword [esp + 0x10], eax
test esi, esi
je 0x45036d
push 1
push 0x3e8
push edi
lea ebx, [edi - 4]
push ebx
push esi
lea eax, [esp + 0x28]
call fcn.00457a70
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push 1
push 0x80
push edx
mov edx, dword [edi + 0x20]
call fcn.0044fe90
mov eax, dword [esi + 0x34]
mov ebx, dword [ebx]
add esp, 0xc
test eax, eax
je 0x45055f
movzx ecx, word [esi + 6]
movsx edx, cx
cmp ebx, edx
jl 0x45034e
test cx, cx
jle 0x45055f
mov ebp, dword [eax + edx*4 - 4]
jmp 0x45036f
mov ebx, dword [eax + ebx*4]
movzx eax, byte [esi + 1]
push eax
add esi, 0x54
push esi
mov esi, ebx
call fcn.00458bb0
test al, al
je 0x45055f
mov ebp, ebx
jmp 0x45036f
mov ebp, dword [eax]
test ebp, ebp
je 0x45055f
mov ecx, dword [esp + 0x10]
push ecx
xor eax, eax
call fcn.0045a330
mov esi, dword [edi + 0x10]
sub esi, dword [0x604474]
mov ebx, dword [edi + 0xc]
mov edx, dword [ebp + 0x10]
sub ebx, dword [0x604470]
mov dword [esp + 0x10], eax
movsx eax, word [ebp + 8]
add eax, esi
mov dword [esp + 0x18], eax
movsx eax, word [ebp + 6]
mov dword [esp + 0x14], edx
mov dx, word [0x6044b4]
mov ecx, 0x800
add eax, ebx
cmp dx, cx
jge 0x45040c
movsx ecx, dx
lea ecx, [ecx + ecx*4]
lea ecx, [ecx*8 + 0x5ec7d0]
mov word [ecx + 6], ax
mov ax, word [esp + 0x18]
mov word [ecx + 8], ax
mov eax, dword [esp + 0x14]
inc dx
mov byte [ecx], 0
mov word [ecx + 2], si
mov byte [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov byte [ecx + 0x10], 0x20
mov dword [ecx + 0x14], eax
mov byte [ecx + 0xa], 1
mov dword [ecx + 0x24], 0
mov word [0x6044b4], dx
mov ecx, dword [ebp + 0xc]
movsx eax, word [ebp + 4]
movsx ebp, word [ebp + 2]
mov dword [esp + 0x18], ecx
mov ecx, 0x800
add eax, esi
add ebp, ebx
cmp dx, cx
jge 0x450469
movsx ecx, dx
lea ecx, [ecx + ecx*4]
lea ecx, [ecx*8 + 0x5ec7d0]
mov word [ecx + 8], ax
xor eax, eax
mov word [ecx + 6], bp
mov ebp, dword [esp + 0x18]
inc dx
mov byte [ecx], 0
mov word [ecx + 2], si
mov byte [ecx + 4], 0xa
mov dword [ecx + 0xc], eax
mov byte [ecx + 0x10], 0x20
mov dword [ecx + 0x14], ebp
mov byte [ecx + 0xa], 2
mov dword [ecx + 0x24], eax
mov word [0x6044b4], dx
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x45055f
movsx eax, word [ecx + 4]
movsx ebp, word [ecx + 2]
mov ecx, dword [ecx + 0xc]
push 0
push 0x10
push 0x80
push ecx
add eax, esi
push eax
add ebp, ebx
push ebp
push 0xf
push esi
push 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call fcn.00448b80
mov edx, dword [0x4c02d8]
movsx ecx, word [edx]
mov eax, dword [0x6044a0]
sub ecx, eax
add esp, 0x24
cmp ebx, ecx
jl 0x4504fa
movsx ecx, word [edx + 2]
sub ecx, eax
cmp esi, ecx
jl 0x4504fa
movsx ecx, word [edx + 4]
add ecx, eax
cmp ebx, ecx
jg 0x4504fa
movsx ecx, word [edx + 6]
add ecx, eax
cmp esi, ecx
jg 0x4504fa
mov ecx, dword [0x60449c]
lea eax, [ecx + ecx*2]
lea eax, [eax*4 + 0x5df2d0]
inc ecx
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], 1
mov dword [0x60449c], ecx
mov eax, dword [esp + 0x18]
movsx ecx, word [eax + 2]
movsx eax, word [eax]
movsx ebx, word [edx]
mov esi, dword [0x6044a0]
sar eax, 1
sar ecx, 1
add ecx, dword [esp + 0x14]
add eax, ebp
sub ebx, esi
cmp eax, ebx
jl 0x45055f
movsx ebx, word [edx + 2]
sub ebx, esi
cmp ecx, ebx
jl 0x45055f
movsx ebx, word [edx + 4]
add ebx, esi
cmp eax, ebx
jg 0x45055f
movsx edx, word [edx + 6]
add edx, esi
cmp ecx, edx
jg 0x45055f
mov esi, dword [0x60449c]
lea edx, [esi + esi*2]
lea edx, [edx*4 + 0x5df2d0]
inc esi
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [edx + 8], 0
mov dword [0x60449c], esi
add edi, 0x30
cmp edi, 0x5e1bd4
jl 0x450050
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret