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

Disassembly:
sub esp, 0x7c
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x70], esi
movzx edx, byte [ebx + 0xc]
mov edi, dword [ebx + 8]
mov ebp, dword [ebx]
mov eax, dword [ebx + 4]
cmp dl, 0x1c
movzx esi, dl
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], eax
jbe switch.0x00409ca2
xor edi, edi
mov eax, edi
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
add esp, 0x7c
ret
jmp dword [esi*4 + 0x4c4b38]
lea eax, [esp + 0x54]
xor edi, edi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov dword [esp], eax
mov byte [esp + 0x20], dl
call fcn.0041b310
test eax, eax
je 0x409c8c
lea eax, [esp + 0x58]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.0041b310
movzx edx, byte [esp + 0x20]
test eax, eax
je 0x409c8c
cmp esi, 0x13
je 0x409fe4
cmp esi, 0x14
je 0x40a02d
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
cmp dword [esp + 0x1c], 0x4c0cf0
mov dword [esp + 0x5c], 0
je 0x40a018
lea eax, [esi - 0x15]
cmp eax, 1
jbe 0x40a026
cmp esi, 0x17
je 0x409f90
cmp esi, 0x14
je 0x409f90
cmp esi, 0x19
je 0x409f90
cmp esi, 0x18
je 0x409f90
cmp esi, 0x1a
je 0x409f90
cmp dword [esp + 0x28], 0x4c0cf0
je 0x40a1ca
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
cmp eax, 0x4c0cf0
mov dword [esp + 0x2c], ecx
je 0x40a20b
cmp esi, 0xa
je 0x40a192
lea edi, [esi - 0xa]
cmp edi, 1
jbe 0x40a1a0
mov ecx, dword [esp + 0x2c]
xor edi, edi
cmp dword [esp + 0x44], ecx
jne 0x409c8c
mov edi, dword [esp + 0x28]
cmp edi, dword [0x51e348]
je 0x40a293
xor edi, edi
cmp dword [esp + 0x28], 0x4c0c48
jne 0x409c8c
cmp eax, 0x4c0c48
jne 0x409c8c
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x3c], eax
jne 0x409c8c
cmp esi, 0xf
je 0x40a1b6
cmp esi, 0x12
je 0x40a1b6
lea eax, [esi - 0x10]
xor edi, edi
cmp eax, 1
ja 0x409c8c
mov ebp, dword [esp + 0x5c]
sub edx, 0xb
add ebp, dword [esp + 0x48]
cmp dl, 0x11
jbe 0x40a04c
mov edi, dword [esp + 0x44]
imul edi, ebp
mov byte [ebx + 0xc], 2
jmp 0x409f06
lea eax, [esp + 0x54]
xor edi, edi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.0041b310
test eax, eax
je 0x409c8c
cmp dword [esp + 0x4c], 0x4c0cf0
jne 0x409c8c
cmp esi, 9
je 0x40a180
cmp esi, 7
mov edi, dword [esp + 0x44]
je 0x40a1c3
not edi
jmp 0x409e36
lea eax, [esp + 0x54]
xor edi, edi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x20], dl
mov dword [esp], eax
call fcn.0041b310
movzx edx, byte [esp + 0x20]
test eax, eax
je 0x409c8c
cmp esi, 3
je 0x409f20
cmp esi, 5
sete cl
cmp esi, 2
sete al
or ecx, eax
test cl, cl
mov byte [ebx + 0xc], dl
jne 0x409f02
mov edi, dword [esp + 0x24]
mov dword [ebx + 8], edi
mov edi, 1
jmp 0x409c8c
mov dword [esp + 0x44], 0
jmp 0x409ecd
mov edi, dword [esp + 0x44]
add dword [esp + 0x24], edi
mov edi, dword [esp + 0x24]
mov dword [ebx + 8], edi
mov edi, 1
jmp 0x409c8c
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x3c]
cmp eax, 0x4c0cf0
mov ecx, 1
mov edx, 2
je 0x409f56
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x409f60
cmp dword [0x51e348], eax
jne 0x409f60
mov edx, 5
mov dword [esp + 0x24], 0
mov dword [ebx], esi
jmp 0x409ee0
mov dword [esp + 4], ebp
mov dword [esp], esi
call fcn.0041e590
test eax, eax
jne 0x409f78
mov ecx, dword [esp + 0x44]
add dword [esp + 0x24], ecx
mov esi, dword [esp + 0x3c]
xor ecx, ecx
mov edx, 3
mov dword [ebx], esi
jmp 0x409ee0
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x1c]
jne 0x409d78
mov ecx, dword [0x5196e0]
test ecx, ecx
je 0x40a2a0
mov edi, dword [0x51e348]
cmp edi, eax
mov dword [esp + 0x28], edi
je 0x40a310
cmp eax, 0x4c0c48
jne 0x409e1b
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x3c], edi
mov dword [esp + 0x28], 0x4c0c48
jne 0x409d86
jmp 0x409e1b
mov eax, dword [esp + 0x50]
cmp eax, 0x4c0cf0
je 0x40a245
mov ecx, dword [esp + 0x4c]
cmp ecx, 0x4c0cf0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], ecx
je 0x40a25a
mov dword [esp + 0x5c], 0
jmp 0x409d3f
cmp dword [esp + 0x50], 0x4c0cf0
jne 0x409d3f
xor ebp, ebp
jmp 0x409e1f
cmp dword [esp + 0x50], 0x4c0cf0
je 0x40a27e
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], ecx
jmp 0x409d29
movzx edx, dl
jmp dword [edx*4 + 0x4c4bac]
xor edx, edx
cmp dword [esp + 0x44], ebp
setle dl
mov edi, edx
sub edi, 1
jmp 0x409e36
xor eax, eax
cmp dword [esp + 0x44], ebp
setl al
mov edi, eax
sub edi, 1
jmp 0x409e36
xor ecx, ecx
cmp dword [esp + 0x44], ebp
setg cl
mov edi, ecx
sub edi, 1
jmp 0x409e36
xor edx, edx
cmp dword [esp + 0x44], ebp
setge dl
mov edi, edx
sub edi, 1
jmp 0x409e36
xor edi, edi
cmp ebp, dword [esp + 0x44]
je 0x40a355
mov eax, edi
cmp esi, 0x16
not eax
cmove edi, eax
jmp 0x409e36
mov edi, dword [esp + 0x44]
sub edi, ebp
jmp 0x409e36
mov edi, dword [esp + 0x44]
add edi, ebp
jmp 0x409e36
mov edi, dword [esp + 0x44]
and edi, ebp
jmp 0x409e36
mov edi, dword [esp + 0x44]
xor edi, ebp
jmp 0x409e36
mov edi, ebp
not edi
or edi, dword [esp + 0x44]
jmp 0x409e36
mov edi, dword [esp + 0x44]
or edi, ebp
jmp 0x409e36
mov edi, dword [esp + 0x44]
mov ecx, ebp
shr edi, cl
jmp 0x409e36
mov edi, dword [esp + 0x44]
mov ecx, ebp
shl edi, cl
jmp 0x409e36
xor edi, edi
test ebp, ebp
je 0x409c8c
mov eax, dword [esp + 0x44]
mov edx, eax
sar edx, 0x1f
idiv ebp
mov edi, edx
jmp 0x409e36
xor edi, edi
test ebp, ebp
je 0x409c8c
mov eax, dword [esp + 0x44]
mov edx, eax
sar edx, 0x1f
idiv ebp
mov edi, eax
jmp 0x409e36
xor eax, eax
cmp dword [esp + 0x44], 0
je 0x40a163
xor eax, eax
test ebp, ebp
setne al
mov edi, eax
jmp 0x409e36
cmp dword [esp + 0x44], 0
mov eax, 1
je 0x40a15c
mov edi, eax
jmp 0x409e36
mov esi, dword [esp + 0x44]
xor eax, eax
test esi, esi
sete al
mov edi, eax
jmp 0x409e36
cmp dword [esp + 0x28], 0x4c0cf0
je 0x40a2da
cmp eax, 0x4c0cf0
jne 0x409db2
cmp dword [esp + 0x2c], 1
jne 0x409db2
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
jmp 0x409f28
neg edi
jmp 0x409e36
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x409d86
cmp esi, 0xf
je 0x40a1e0
cmp esi, 0x11
jne 0x40a215
mov eax, dword [esp + 0x50]
cmp eax, 0x4c0cf0
je 0x40a341
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov ebp, dword [ebx + 4]
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], esi
jmp 0x409f28
test ecx, ecx
jne 0x409d9d
jmp 0x40a1d6
lea eax, [esi - 0xd]
cmp eax, 1
jbe 0x40a323
cmp esi, 0x10
je 0x409e1b
cmp esi, 0xa
je 0x409e1b
xor edi, edi
cmp esi, 0x12
jne 0x409c8c
nop
jmp 0x409e1b
mov edx, dword [esp + 0x48]
add dword [esp + 0x24], edx
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x3c]
jmp 0x409f28
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
add dword [esp + 0x24], edi
mov ebp, dword [ebx + 4]
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], esi
jmp 0x409f28
mov edi, dword [esp + 0x48]
sub dword [esp + 0x24], edi
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x3c]
jmp 0x409f28
cmp edi, eax
jne 0x409dd2
jmp 0x409dfb
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov byte [esp + 0x20], dl
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.0040c4d0
movzx edx, byte [esp + 0x20]
test eax, eax
jne 0x40a301
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
jmp 0x409d78
cmp dword [esp + 0x44], 1
jne 0x40a1a0
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov ebp, dword [ebx + 4]
mov dword [esp + 0x44], edi
mov dword [esp + 0x3c], esi
jmp 0x409f28
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], ecx
mov eax, ecx
jmp 0x409fac
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x44], ecx
jne 0x409d78
jmp 0x409fbe
cmp dword [esp + 0x28], 0x4c0cf0
jne 0x40a1b6
cmp dword [esp + 0x44], 0
jne 0x40a1b6
jmp 0x409e1b
cmp dword [esp + 0x48], 0
je 0x40a1b6
lea esi, [esi]
jmp 0x40a1ef
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x50]
jne 0x40a0ae
cmp dword [0x5196e0], 0
jne 0x40a37a
mov edx, dword [esp + 0x58]
cmp dword [esp + 0x54], edx
jne 0x40a0ae
or edi, 0xffffffff
cmp dword [esp + 0x1c], 0x4c0c48
jne 0x40a0ae
mov ecx, dword [esp + 0x40]
xor eax, eax
cmp dword [esp + 0x3c], ecx
setne al
mov edi, eax
sub edi, 1
jmp 0x40a0ae