Function at 0x409410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffee8
mov dword [esp], edx
mov ebx, eax
mov eax, dword [esp]
cmp eax, 7
ja case.0x40942b.0
jmp dword [eax*4 + 0x409432]
mov edx, dword [ebx + 0xc]
mov dword [esp + 4], edx
mov ecx, dword [ebx + 0x20]
mov dword [esp + 8], ecx
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xc], eax
cmp dword [esp + 8], 0x3c000
jge case.0x40942b.0
mov dword [esp + 0x10], 0x1000000
mov dl, 0xe9
cmp dword [esp], 2
je 0x409486
dec edx
mov byte [esp + 0x14], dl
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x409515
mov eax, dword [esp + 4]
inc dword [esp + 4]
mov dl, byte [eax]
mov byte [esp + 0x1c], dl
inc dword [esp + 0x18]
cmp byte [esp + 0x1c], 0xe8
je 0x4094b8
mov cl, byte [esp + 0x1c]
cmp cl, byte [esp + 0x14]
jne 0x409515
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 4]
mov ecx, dword [edx]
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x24], 0
jge 0x4094f3
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x20]
test eax, eax
jl 0x40950b
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x24]
add edx, 0x1000000
mov dword [ecx], edx
jmp 0x40950b
cmp dword [esp + 0x24], 0x1000000
jge 0x40950b
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 4]
sub eax, dword [esp + 0x20]
mov dword [edx], eax
add dword [esp + 4], 4
add dword [esp + 0x18], 4
mov ecx, dword [esp + 8]
add ecx, 0xfffffffc
cmp ecx, dword [esp + 0x18]
ja 0x409495
jmp case.0x40942b.0
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x28], eax
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x2c], edx
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x2c], 0x3c000
jge case.0x40942b.0
xor eax, eax
mov dword [esp + 0x34], eax
shr dword [esp + 0x30], 4
jmp 0x409632
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov cl, byte [edx]
and ecx, 0x1f
add ecx, 0xfffffff0
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x38], 0
jl 0x409624
mov eax, dword [esp + 0x38]
mov dl, byte [eax + 0x4126e8]
mov byte [esp + 0x3c], dl
cmp byte [esp + 0x3c], 0
je 0x409624
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x40]
mov eax, 1
shl eax, cl
xor edx, edx
mov dl, byte [esp + 0x3c]
and eax, edx
je 0x409615
imul eax, dword [esp + 0x40], 0x29
add eax, 5
mov dword [esp + 0x44], eax
push 4
mov ecx, dword [esp + 0x48]
add ecx, 0x25
mov edx, dword [esp + 0x2c]
mov eax, ebx
call fcn.00409cf4
mov dword [esp + 0x48], eax
cmp dword [esp + 0x48], 5
jne 0x409615
push 0x14
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
add ecx, 0xd
call fcn.00409cf4
mov dword [esp + 0x4c], eax
mov eax, ebx
mov edx, dword [esp + 0x44]
add edx, 0xd
push edx
push 0x14
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
sub ecx, dword [esp + 0x38]
and ecx, 0xfffff
call fcn.00409d4c
inc dword [esp + 0x40]
cmp dword [esp + 0x40], 2
jle 0x40959a
add dword [esp + 0x28], 0x10
add dword [esp + 0x34], 0x10
inc dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add ecx, 0xffffffeb
cmp ecx, dword [esp + 0x34]
ja 0x40955e
jmp case.0x40942b.0
mov eax, dword [ebx + 0x20]
xor ecx, ecx
mov dword [esp + 0x50], eax
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x50]
add eax, eax
mov dword [esp + 0x5c], eax
mov edx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x50]
mov dword [edx + 0x3c020], ecx
cmp dword [esp + 0x50], 0x1e000
jge case.0x40942b.0
xor eax, eax
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x60]
cmp edx, dword [esp + 0x54]
jge case.0x40942b.0
xor edx, edx
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x5c]
jge 0x4096c3
mov ecx, dword [esp + 0x58]
inc dword [esp + 0x58]
mov esi, dword [ebx + 0xc]
sub dl, byte [esi + ecx]
mov ecx, dword [ebx + 0xc]
mov byte [ecx + eax], dl
add eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x5c]
jl 0x4096a5
inc dword [esp + 0x60]
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x54]
jl 0x409695
jmp case.0x40942b.0
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x64], edx
mov eax, dword [ebx + 0x10]
sub eax, 3
mov dword [esp + 0x68], eax
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x6c], edx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x70]
add eax, dword [esp + 0x64]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 3
mov edx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x64]
mov dword [edx + 0x3c020], ecx
cmp dword [esp + 0x64], 0x1e000
jge case.0x40942b.0
cmp dword [esp + 0x6c], 0
jl case.0x40942b.0
xor eax, eax
mov dword [esp + 0x7c], eax
xor ebx, ebx
mov edi, dword [esp + 0x7c]
cmp edi, dword [esp + 0x64]
jge 0x40980b
mov eax, edi
sub eax, dword [esp + 0x68]
cmp eax, 3
jl 0x4097e3
add eax, dword [esp + 0x74]
movzx esi, byte [eax]
movzx ebp, byte [eax - 3]
lea ecx, [esi + ebx]
sub ecx, ebp
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x84]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x80], eax
mov eax, ecx
sub eax, esi
sub ecx, ebp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x8c]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], ecx
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x80]
cdq
xor eax, edx
sub eax, edx
cmp ecx, dword [esp + 0x88]
jg 0x4097d2
cmp eax, dword [esp + 0x80]
jl 0x4097d2
mov ecx, ebx
jmp 0x4097e5
cmp eax, dword [esp + 0x88]
jl 0x4097df
mov ecx, esi
jmp 0x4097e5
mov ecx, ebp
jmp 0x4097e5
mov ecx, ebx
mov eax, dword [esp + 0x70]
mov ebx, ecx
sub bl, byte [eax]
mov eax, dword [esp + 0x74]
and ebx, 0xff
mov byte [eax + edi], bl
inc dword [esp + 0x70]
add edi, 3
cmp edi, dword [esp + 0x64]
jl 0x409745
inc dword [esp + 0x7c]
cmp dword [esp + 0x7c], 3
jl 0x409735
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x94], edx
mov ecx, dword [esp + 0x64]
add ecx, 0xfffffffe
mov dword [esp + 0x98], ecx
mov eax, dword [esp + 0x94]
cmp eax, dword [esp + 0x98]
jge case.0x40942b.0
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x94]
mov al, byte [edx + ecx + 1]
mov byte [esp + 0x9c], al
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x94]
mov al, byte [esp + 0x9c]
add byte [edx + ecx], al
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x94]
mov al, byte [esp + 0x9c]
add byte [edx + ecx + 2], al
add dword [esp + 0x94], 3
mov edx, dword [esp + 0x94]
cmp edx, dword [esp + 0x98]
jl 0x409847
jmp case.0x40942b.0
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0xa0], ecx
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xa4], eax
mov edx, dword [ebx + 0xc]
mov dword [esp + 0xa8], edx
mov ecx, dword [esp + 0xa8]
add ecx, dword [esp + 0xa0]
mov dword [esp + 0xac], ecx
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0xa0]
mov dword [eax + 0x3c020], edx
cmp dword [esp + 0xa0], 0x1e000
jge case.0x40942b.0
xor ecx, ecx
mov dword [esp + 0xb0], ecx
mov eax, dword [esp + 0xb0]
cmp eax, dword [esp + 0xa4]
jge case.0x40942b.0
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], ecx
xor eax, eax
xor edx, edx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], edx
xor ecx, ecx
xor esi, esi
mov dword [esp + 0xc4], ecx
xor edi, edi
xor edx, edx
mov ecx, 0x1c
lea eax, [esp + 0xfc]
call fcn.0040cd38
mov eax, dword [esp + 0xb0]
xor edx, edx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edx
mov ecx, dword [esp + 0xc8]
cmp ecx, dword [esp + 0xa0]
jge 0x409be7
mov ebp, edi
mov edi, dword [esp + 0xb8]
sub edi, esi
mov esi, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb4]
imul edx, esi
mov ecx, dword [esp + 0xc0]
imul ecx, edi
shl eax, 3
add eax, edx
mov edx, dword [esp + 0xc4]
imul edx, ebp
add eax, ecx
mov ecx, dword [esp + 0xa8]
inc dword [esp + 0xa8]
add eax, edx
xor edx, edx
mov ebx, dword [esp + 0xc8]
mov dl, byte [ecx]
mov ecx, dword [esp + 0xac]
add ecx, ebx
shr eax, 3
push ecx
pop ecx
and eax, 0xff
sub eax, edx
mov byte [ecx], al
mov ecx, eax
sub cl, byte [esp + 0xb4]
movsx ecx, cl
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xb4], eax
movsx ecx, dl
shl ecx, 3
mov dword [esp + 0xd0], ecx
mov eax, dword [esp + 0xd0]
cdq
xor eax, edx
sub eax, edx
add dword [esp + 0xfc], eax
mov eax, ecx
sub eax, esi
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xd4]
cdq
xor eax, edx
sub eax, edx
add dword [esp + 0x100], eax
lea eax, [esi + ecx]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xd8]
cdq
xor eax, edx
sub eax, edx
add dword [esp + 0x104], eax
mov eax, ecx
sub eax, edi
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xdc]
cdq
xor eax, edx
sub eax, edx
add dword [esp + 0x108], eax
lea eax, [edi + ecx]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xe0]
cdq
xor eax, edx
sub eax, edx
add dword [esp + 0x10c], eax
mov eax, ecx
sub eax, ebp
add ebp, ecx
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0xe4]
cdq
xor eax, edx
sub eax, edx
add dword [esp + 0x110], eax
mov dword [esp + 0xe8], ebp
mov eax, dword [esp + 0xe8]
cdq
xor eax, edx
sub eax, edx
add dword [esp + 0x114], eax
test byte [esp + 0xcc], 0x1f
jne case.0x409b2b.0
xor ebx, ebx
xor eax, eax
mov edx, dword [esp + 0xfc]
mov dword [esp + 0xfc], eax
mov eax, 1
mov ecx, dword [esp + eax*4 + 0xfc]
cmp edx, ecx
jbe 0x409b13
mov edx, ecx
mov ebx, eax
xor ecx, ecx
mov dword [esp + eax*4 + 0xfc], ecx
inc eax
cmp eax, 7
jl 0x409b04
cmp ebx, 6
ja case.0x409b2b.0
jmp dword [ebx*4 + 0x409b32]
cmp dword [esp + 0xbc], 0xfffffff0
jl case.0x409b2b.0
dec dword [esp + 0xbc]
jmp case.0x409b2b.0
cmp dword [esp + 0xbc], 0x10
jge case.0x409b2b.0
inc dword [esp + 0xbc]
jmp case.0x409b2b.0
cmp dword [esp + 0xc0], 0xfffffff0
jl case.0x409b2b.0
dec dword [esp + 0xc0]
jmp case.0x409b2b.0
cmp dword [esp + 0xc0], 0x10
jge case.0x409b2b.0
inc dword [esp + 0xc0]
jmp case.0x409b2b.0
cmp dword [esp + 0xc4], 0xfffffff0
jl case.0x409b2b.0
dec dword [esp + 0xc4]
jmp case.0x409b2b.0
cmp dword [esp + 0xc4], 0x10
jge case.0x409b2b.0
inc dword [esp + 0xc4]
mov eax, dword [esp + 0xa4]
add dword [esp + 0xc8], eax
inc dword [esp + 0xcc]
mov edx, dword [esp + 0xc8]
cmp edx, dword [esp + 0xa0]
jl 0x409985
inc dword [esp + 0xb0]
mov eax, dword [esp + 0xb0]
cmp eax, dword [esp + 0xa4]
jl 0x409916
jmp case.0x40942b.0
mov edx, dword [ebx + 0x20]
xor ecx, ecx
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], ecx
mov eax, dword [esp + 0xec]
mov dword [esp + 0xf4], eax
cmp dword [esp + 0xec], 0x1e000
jge case.0x40942b.0
mov edx, dword [esp + 0xf0]
cmp edx, dword [esp + 0xec]
jge 0x409cc1
mov ecx, dword [esp + 0xf0]
inc dword [esp + 0xf0]
mov eax, dword [ebx + 0xc]
mov dl, byte [eax + ecx]
mov byte [esp + 0xf8], dl
cmp byte [esp + 0xf8], 2
jne 0x409c96
mov ecx, dword [esp + 0xf0]
inc dword [esp + 0xf0]
mov eax, dword [ebx + 0xc]
mov dl, byte [eax + ecx]
mov byte [esp + 0xf8], dl
cmp dl, 2
je 0x409c96
add byte [esp + 0xf8], 0xe0
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0xf4]
mov dl, byte [esp + 0xf8]
mov byte [eax + ecx], dl
inc dword [esp + 0xf4]
mov eax, dword [esp + 0xf0]
cmp eax, dword [esp + 0xec]
jl 0x409c49
mov ecx, dword [esp + 0xf4]
mov eax, dword [ebx + 0xc]
sub ecx, dword [esp + 0xec]
mov dword [eax + 0x3c01c], ecx
mov edx, dword [ebx + 0xc]
mov ecx, dword [esp + 0xec]
mov dword [edx + 0x3c020], ecx
add esp, 0x118
pop ebp
pop edi
pop esi
pop ebx
ret