Function at 0x409270
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x409595
cmp dword [esi + 0x14], 0
je 0x409595
cmp dword [esi + 0x20], 0xffffffff
jne 0x4092b1
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4092aa
push 0
push 0
push 0x14e0
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esi + 0x20], 0
mov eax, dword [ebp + 8]
push edi
mov edi, eax
sub edi, dword [esi + 0x20]
add dword [esi + 0x40], edi
cmp dword [esi + 0x44], 0
mov dword [ebp - 8], edi
je 0x4092c9
add dword [esi + 0x50], edi
mov dword [esi + 0x20], eax
push ebx
lea ecx, [ecx]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
cmp ecx, edx
jbe 0x4092f0
cmp dword [esi + 0x44], 0
je 0x409521
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x48]
ja 0x409521
xor eax, eax
xor ebx, ebx
cmp ecx, edx
ja 0x4092fe
mov edx, dword [esi + 0x34]
lea ebx, [edx + ecx*4]
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x409310
mov edx, dword [esi + 0x4c]
cmp edx, dword [esi + 0x48]
ja 0x409310
lea eax, [ecx + edx*4]
test ebx, ebx
je 0x40931b
mov ecx, dword [ebx]
cmp ecx, dword [esi + 0x40]
jbe 0x40932e
test eax, eax
je 0x40958f
mov edx, dword [eax]
cmp edx, dword [esi + 0x50]
ja 0x40958f
test eax, eax
je 0x409354
test ebx, ebx
je 0x409344
mov ecx, dword [esi + 0x50]
mov edx, dword [eax]
add ecx, dword [ebx]
add edx, dword [esi + 0x40]
cmp ecx, edx
jbe 0x409354
mov ebx, eax
mov eax, dword [eax]
sub dword [esi + 0x50], eax
mov dword [ebp - 4], 1
jmp 0x409360
mov ecx, dword [ebx]
sub dword [esi + 0x40], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 4]
test ecx, ecx
jns 0x409398
mov eax, ecx
and eax, 0xffffff
lea edx, [eax + 3]
lea edi, [ebx + 8]
shr edx, 2
mov dword [ebp + 8], edx
test edi, edi
je 0x40939d
cmp byte [edi + 1], 0x7d
jne 0x40939d
movzx ecx, byte [edi + 2]
cmp ecx, 3
ja case.default.0x409391
jmp dword [ecx*4 + 0x4095a8]
xor edi, edi
mov dword [ebp + 8], edi
push 0
push ecx
mov ecx, esi
call fcn.004065b0
test edi, edi
je 0x4094cc
mov edx, dword [ebx + 4]
push edi
push edx
jmp 0x4094f4
cmp dword [esi + 0x18], 0
je case.default.0x409391
cmp eax, 0x14
jne case.default.0x409391
lea edx, [edi + 3]
push edx
call fcn.00408460
add edi, 0xb
push edi
mov ebx, eax
call fcn.00408460
add esp, 8
push eax
mov eax, dword [esi + 0x18]
push ebx
push 0x14e1
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.default.0x409391
cmp dword [esi + 0x18], 0
je case.default.0x409391
cmp eax, 0x14
jne case.default.0x409391
lea ecx, [edi + 3]
push ecx
call fcn.00408460
add edi, 0xb
push edi
mov ebx, eax
call fcn.00408460
mov edx, dword [esi + 0x18]
add esp, 8
push eax
push ebx
push 0x14e2
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.default.0x409391
cmp eax, 8
jne case.default.0x409391
mov al, byte [edi + 5]
and al, 0x7f
movzx ecx, al
movzx eax, byte [edi + 6]
shl cx, 7
movzx edx, cx
mov cl, byte [edi + 3]
and eax, 0x7f
or edx, eax
and cl, 0x7f
movzx eax, cl
shl ax, 7
movzx ecx, ax
movzx eax, byte [edi + 4]
shl edx, 0x10
or edx, ecx
and eax, 0x7f
or edx, eax
mov ecx, esi
mov dword [esi + 0x28], edx
call fcn.00408ea0
jmp case.default.0x409391
cmp eax, 8
jne case.default.0x409391
mov cl, byte [edi + 3]
and cl, 0x7f
movzx edx, cl
movzx ecx, byte [edi + 4]
shl dx, 7
movzx eax, dx
mov dl, byte [edi + 5]
and ecx, 0x7f
or eax, ecx
and dl, 0x7f
movzx ecx, dl
shl cx, 7
movzx edx, cx
movzx ecx, byte [edi + 6]
shl eax, 0x10
and ecx, 0x7f
or eax, edx
or eax, ecx
mov ecx, esi
mov dword [esi + 0x30], eax
call fcn.00408ed0
jmp case.default.0x409391
movzx eax, byte [ebx + 7]
and eax, 0xf
sub eax, 0
je 0x4094ee
dec eax
jne case.default.0x409391
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x10]
and eax, 0xffffff
push eax
call fcn.00409a90
jmp case.default.0x409391
mov ecx, dword [ebx + 4]
push 0
push ecx
mov ecx, dword [esi + 0x14]
call fcn.004054c0
cmp dword [ebp - 4], 0
mov edi, dword [ebp - 8]
je 0x409513
mov edx, dword [ebp + 8]
add edx, 2
add dword [esi + 0x4c], edx
jmp 0x4092d0
mov eax, dword [ebp + 8]
add eax, 2
add dword [esi + 0x3c], eax
jmp 0x4092d0
mov ecx, dword [esi + 0x10]
push 0
call fcn.00409b00
test eax, eax
jne 0x40953d
push 0x1a2
push 1
mov ecx, esi
call fcn.00406580
cmp dword [esi + 0x1c], 0
je 0x40954d
mov ecx, dword [esi + 0x14]
push 0
call fcn.00405960
mov ecx, dword [esi + 0x14]
push 0x3fff
call fcn.00405320
mov edi, dword [esi + 0x18]
mov ecx, esi
call fcn.00408e10
test edi, edi
je 0x409578
push 0
push 0
push 0x14e3
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
push esi
push 0x24f0
call fcn.004031b0
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
test edi, edi
je 0x409586
jmp 0x409578
push 0x114
push 1
call fcn.00406580
pop esi
mov esp, ebp
pop ebp
ret 4