Function at 0x40c390
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x128
mov eax, dword [0xb2ffb4]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x12c]
push ebx
mov ebx, dword [esp + 0x134]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c3c0
sub eax, edx
add eax, 1
mov dword [esp + 0x14], eax
movzx eax, word [edi + 8]
cmp ax, 2
jne 0x40c610
mov eax, dword [edi + 0xc]
xor ebp, ebp
cmp eax, ebp
je 0x40c3ed
cmp dword [eax], ebp
jne 0x40c3f3
mov dword [esp + 0x20], ebp
jmp 0x40c3ff
movzx ecx, byte [eax + 4]
lea edx, [ecx + eax + 6]
mov dword [esp + 0x20], edx
cmp eax, ebp
je 0x40c54c
mov edx, dword [eax]
cmp edx, ebp
mov dword [esp + 0x28], edx
jbe 0x40c54c
mov eax, dword [esp + 0x20]
lea esi, [eax + ebp]
movzx eax, word [esi + 4]
mov ecx, eax
and ecx, 0xff
mov dword [esp + 0x2c], ecx
ja 0x40c437
cmp dword [esi], 0
jbe 0x40c54c
mov ecx, dword [esi]
and eax, 0xff
add ecx, eax
lea ecx, [ecx + ebp + 6]
cmp ecx, edx
ja 0x40c54c
cmp word [esp + 0x2c], 0
je 0x40c45f
cmp byte [eax + esi + 5], 0
jne 0x40c54c
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jne 0x40c481
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esi + 6]
push edx
push eax
call fcn.004147a4
add esp, 0xc
test eax, eax
je 0x40c494
mov edx, dword [esp + 0x28]
movzx ecx, byte [esi + 4]
add ecx, dword [esi]
lea ebp, [ecx + ebp + 6]
cmp ebp, edx
jb 0x40c415
jmp 0x40c54c
test word [esi + 4], 0x2000
je 0x40c5c9
movzx eax, byte [esi + 4]
mov edx, dword [esp + 0x20]
and eax, 0xff
lea ecx, [eax + edx]
mov edi, dword [ecx + ebp + 6]
lea ebp, [ecx + ebp + 6]
mov ecx, dword [0xb2f004]
lea edx, [esp + 0x10]
push edx
push ecx
lea edx, [eax + edi + 6]
push edx
mov dword [esp + 0x1c], 0
call fcn.0040d740
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x40c54c
lea edx, [esp + 0x14]
push edx
movzx edx, byte [esi + 4]
lea edx, [edx + edi + 6]
mov dword [esp + 0x18], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c540
movzx edx, byte [esi + 4]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi]
lea eax, [edx + eax + 6]
push eax
sub ecx, 4
push ecx
add ebp, 4
push ebp
mov dword [esp + 0x34], edi
call fcn.0040d970
add esp, 0x10
test eax, eax
je 0x40c569
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
push ecx
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414862
add esp, 0x128
ret 8
mov eax, dword [esi]
mov edi, dword [esp + 0x14]
mov dword [edi], eax
mov cx, word [esi + 4]
mov word [edi + 4], cx
and word [edi + 4], 0xdfff
mov edx, dword [esp + 0x24]
mov dword [edi], edx
movzx eax, byte [esi + 4]
push eax
add esi, 6
lea ecx, [edi + 6]
push esi
push ecx
call fcn.004132d0
add esp, 0xc
mov ecx, ebx
call fcn.0040c040
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
mov word [ebx + 8], 2
mov dword [ebx + 4], edx
movzx ecx, byte [edi + 4]
mov edx, dword [edi]
lea eax, [ecx + edx + 6]
mov dword [ebx + 0x10], eax
mov eax, 1
jmp 0x40c54e
mov ecx, ebx
call fcn.0040c040
mov word [ebx + 8], 2
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 0
push 0
push eax
call edx
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], esi
movzx ecx, byte [esi + 4]
mov edx, dword [esi]
lea eax, [ecx + edx + 6]
mov dword [ebx + 0x10], eax
mov eax, 1
jmp 0x40c54e
cmp ax, 1
jne 0x40c54c
mov eax, dword [edi + 4]
lea edx, [esp + 0x2c]
push edx
xor ebp, ebp
push ebp
mov dword [esp + 0x34], ebp
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x34]
call eax
movzx ecx, word [edi + 8]
xor eax, eax
cmp cx, 2
jne 0x40c644
mov eax, dword [edi + 0xc]
jmp 0x40c64d
cmp cx, 1
jne 0x40c64d
lea eax, [edi + 0xc]
movzx ecx, byte [eax + 4]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 4]
lea esi, [ecx + edx + 6]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
jge 0x40c8ef
lea ebx, [ebx]
xor eax, eax
push 0
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push esi
push 0
push eax
call edx
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push 0
push 0
push 6
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x40c8ef
movzx ecx, byte [esp + 0x1c]
test ecx, ecx
mov eax, dword [esp + 0x18]
ja 0x40c6ce
test eax, eax
jbe 0x40c8ef
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
and ebp, 0xff
lea edx, [eax + ebp + 6]
sub ecx, esi
cmp edx, ecx
ja 0x40c8ef
cmp ebp, dword [esp + 0x14]
jne 0x40c747
push 0xfe
lea edx, [esp + 0x3a]
push 0
push edx
mov word [esp + 0x40], 0
call fcn.004141a0
mov eax, dword [edi + 4]
mov ecx, dword [eax]
add esp, 0xc
push 0
push 0
push ebp
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x40c8ef
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004147a4
add esp, 0xc
test eax, eax
je 0x40c761
mov eax, dword [esp + 0x18]
movzx ecx, byte [esp + 0x1c]
add ecx, eax
lea esi, [esi + ecx + 6]
cmp esi, dword [esp + 0x20]
jl 0x40c680
jmp 0x40c8ef
test dword [esp + 0x1c], 0x2000
je 0x40c8b7
mov edx, dword [esp + 0x18]
push edx
call fcn.0040dbf0
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x1c]
push 0
mov ebp, eax
mov eax, dword [edi + 4]
push edx
mov dword [esp + 0x3c], 0
mov ecx, dword [eax]
push ebp
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x18]
jne 0x40c8ef
movzx ecx, byte [esp + 0x1c]
mov esi, dword [ebp]
mov eax, dword [0xb2f004]
lea edx, [esp + 0x10]
push edx
push eax
lea edx, [ecx + esi + 6]
push edx
mov dword [esp + 0x1c], 0
call fcn.0040d740
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x40c54c
lea edx, [esp + 0x14]
push edx
movzx edx, byte [esp + 0x20]
lea edx, [edx + esi + 6]
mov dword [esp + 0x18], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c540
movzx edx, byte [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [edx + eax + 6]
push eax
add ecx, 0xfffffffc
push ecx
lea edx, [ebp + 4]
push edx
mov dword [esp + 0x38], esi
call fcn.0040d970
add esp, 0x10
test eax, eax
je 0x40c849
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
jmp 0x40c540
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi], eax
mov cx, word [esp + 0x1c]
mov word [esi + 4], cx
and word [esi + 4], 0xdfff
mov edx, dword [esp + 0x28]
mov dword [esi], edx
movzx eax, byte [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esi + 6]
push edx
call fcn.004132d0
add esp, 0xc
mov ecx, ebx
call fcn.0040c040
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0xc], ecx
mov word [ebx + 8], 2
mov dword [ebx + 4], eax
movzx edx, byte [esi + 4]
mov eax, dword [esi]
lea ecx, [edx + eax + 6]
push ebp
mov dword [ebx + 0x10], ecx
mov dword [esp + 0x28], 1
call fcn.0040db40
jmp 0x40c8ef
mov ecx, ebx
call fcn.0040c040
mov edx, dword [esp + 0x18]
mov ax, word [esp + 0x1c]
mov dword [ebx + 0xc], edx
mov ebp, 1
mov word [ebx + 8], bp
mov dword [ebx + 0x14], esi
mov word [ebx + 0x10], ax
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x2c]
mov edi, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x34]
push 0
push edx
push 0
push edi
call eax
mov eax, dword [esp + 0x24]
jmp 0x40c54e