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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x94]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
lea edi, [esi + 0xd4a0]
push ecx
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00401860
mov ebp, dword [esi + 0xd4a4]
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x41163c
xor eax, eax
jmp 0x41163f
mov eax, dword [eax + 0x10]
cmp word [eax + 0x203], 0xff
je 0x411b81
mov ecx, dword [esi + 0x1adf4]
inc ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
mov dword [esi + 0x1adf4], ecx
push eax
mov ecx, edi
mov dword [esp + 0x1c], ebx
call fcn.00401860
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x411680
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x411689
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x10], ecx
mov eax, ecx
mov edx, dword [eax + 0x1b]
mov eax, dword [eax + 0x1f]
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], edx
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], ebx
call fcn.00401860
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x4116b8
xor eax, eax
jmp 0x4116bb
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x23]
mov edx, dword [eax + 0x27]
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], ebx
call fcn.00401860
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x4116ea
xor eax, eax
jmp 0x4116ed
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x1f3]
mov ebp, dword [eax + 0x1ef]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
call fcn.00401860
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0xd4a4]
jne 0x411722
xor eax, eax
jmp 0x411725
mov eax, dword [eax + 0x10]
mov ebx, dword [eax + 0x1f7]
mov edi, dword [eax + 0x1fb]
mov al, byte [esi + 0xd48e]
test al, al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
jne 0x41184d
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x34], edx
jne 0x411827
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
add eax, 0x20
cmp eax, ecx
jne 0x411827
mov ebx, dword [esi + 0x9d]
cmp ebx, 0xffff
mov eax, dword [esi + 0x1adf4]
jne 0x4119a6
mov ecx, dword [0x65335c]
add ecx, 0x3c
cmp eax, ecx
jle 0x411b81
mov eax, dword [esi + 0xd464]
test eax, eax
je 0x411818
mov eax, dword [0x652e10]
mov edi, dword [eax + 0x13d8]
mov ebx, dword [eax + 0x13d4]
call fcn.004aa017
cdq
mov ecx, 0x140
idiv ecx
lea ebx, [ebx + edx + 0xa0]
call fcn.004aa017
cdq
mov ecx, 0xf0
idiv ecx
mov ecx, esi
lea edi, [edi + edx + 0x78]
call fcn.00401910
mov edx, ebx
mov eax, edi
and edx, 0x3f
and eax, 0x1f
sub ebx, edx
sub edi, eax
cmp ebp, ebx
jne 0x4117f4
cmp dword [esp + 0x28], edi
je 0x411979
cmp dword [esp + 0x1c], ebp
jne 0x411979
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
add ecx, 0x20
cmp ecx, eax
jne 0x411979
push edi
push ebx
jmp 0x41196b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1b]
mov eax, dword [eax + 0x1f]
jmp 0x41195c
mov edx, dword [0x65335c]
mov eax, dword [esi + 0x1adf4]
add edx, 0x14
cmp eax, edx
jle 0x411b81
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1b]
mov eax, dword [eax + 0x1f]
jmp 0x411a99
cmp al, 1
jne 0x411b81
dec dword [esi + 0xd49c]
jns 0x4118b0
mov edx, dword [0xec0e0c]
mov eax, dword [edx]
mov ecx, dword [0x652e04]
push 1
push 0xffff
add eax, 0x64f8
push eax
add ecx, 0x2394
call fcn.0046f5e0
xor eax, eax
mov byte [esi + 0x1adf0], 0
mov dword [esi + 0x1adf4], eax
mov byte [esi + 0xd48e], al
mov dword [esi + 0xd490], eax
mov dword [esi + 0xd498], eax
mov dword [esi + 0xd494], eax
mov dword [esi + 0xd49c], eax
mov eax, dword [esi + 0xd490]
test eax, eax
jne 0x411ac5
sar edi, 5
push edi
sar ebx, 6
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [0x652e10]
call fcn.0047a8e0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x411906
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x411906
pop edi
mov dword [esi + 0xd490], 1
mov dword [esi + 0xd494], eax
mov dword [esi + 0xd498], ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
mov eax, dword [esp + 0x30]
jne 0x411a82
mov edx, dword [esp + 0x38]
add edx, 0x20
cmp edx, eax
jne 0x411a82
mov ebx, dword [esi + 0x9d]
cmp ebx, 0xffff
jne 0x4119a0
mov edx, dword [0x65335c]
mov edi, dword [esi + 0x1adf4]
add edx, 0x3c
cmp edi, edx
jle 0x411b81
mov edx, dword [esi + 0xd464]
test edx, edx
jne 0x41179b
sub eax, 0x60
cmp ebp, ecx
jne 0x411969
cmp dword [esp + 0x28], eax
je 0x411979
push eax
push ecx
mov ecx, dword [0x652e0c]
add ecx, 4
call fcn.0043d410
call fcn.004aa017
mov ecx, 0x28
cdq
idiv ecx
pop edi
mov dword [esi + 0x1adf4], 0
pop esi
pop ebp
pop ebx
mov dword [0x65335c], edx
add esp, 0x2c
ret 4
mov eax, dword [esi + 0x1adf4]
cmp eax, 0x14
jle 0x411b81
movzx eax, byte [esi + 0xa1]
dec eax
je 0x411a23
dec eax
jne 0x411a6b
mov ecx, esi
push ebx
call fcn.004018d0
test eax, eax
je 0x411a6b
mov ecx, esi
push ebx
call fcn.004018d0
mov edx, dword [eax + 0x27]
mov edi, dword [eax + 0x23]
mov ecx, esi
push ebx
mov dword [esp + 0x3c], edx
call fcn.004018d0
mov ecx, dword [eax + 0x23]
mov eax, dword [eax + 0x27]
mov dword [esp + 0x34], ecx
add eax, 0xffffffe0
mov ecx, esi
push ebx
mov dword [esp + 0x3c], eax
call fcn.004018d0
mov eax, dword [esp + 0x38]
mov edx, edi
mov ecx, eax
and edx, 0x3f
and ecx, 0x1f
sub edi, edx
sub eax, ecx
cmp ebp, edi
jne 0x411a1f
cmp dword [esp + 0x28], eax
je 0x411a6b
push eax
push edi
jmp 0x411a5d
mov ebx, dword [esi + ebx*4 + 0xd63c]
test ebx, ebx
je 0x411a6b
mov eax, dword [ebx + 0x23]
mov edx, dword [ebx + 0x27]
mov ecx, eax
add eax, 0x40
mov ebx, edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov edx, eax
mov ecx, ebx
and edx, 0x3f
and ecx, 0x1f
sub eax, edx
sub ebx, ecx
cmp ebp, eax
jne 0x411a5b
cmp dword [esp + 0x28], ebx
je 0x411a6b
push ebx
push eax
mov ecx, dword [0x652e0c]
add ecx, 4
call fcn.0043d410
xor eax, eax
pop edi
mov dword [esi + 0x1adf4], eax
pop esi
pop ebp
mov dword [0x65335c], eax
pop ebx
add esp, 0x2c
ret 4
mov edx, dword [0x65335c]
mov edi, dword [esi + 0x1adf4]
add edx, 0x14
cmp edi, edx
jle 0x411b81
sub eax, 0x60
cmp ebp, ecx
jne 0x411aa6
cmp dword [esp + 0x28], eax
je 0x411ab6
push eax
push ecx
mov ecx, dword [0x652e0c]
add ecx, 4
call fcn.0043d410
call fcn.004aa017
mov ecx, 0x14
jmp 0x411983
mov edx, dword [esi + 0xd494]
mov ebx, dword [esi + 0xd498]
mov eax, edx
mov ecx, ebx
shl eax, 6
shl ecx, 5
cmp ebp, eax
jne 0x411b71
cmp dword [esp + 0x28], ecx
jne 0x411b71
cmp dword [esp + 0x1c], ebp
jne 0x411b4b
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
add edi, 0x20
cmp edi, ebp
jne 0x411b4b
mov edx, dword [0x65335c]
mov edi, dword [esi + 0x1adf4]
add edx, 0x14
cmp edi, edx
jle 0x411b81
push 1
push ecx
push eax
mov ecx, esi
call fcn.0040e870
xor edi, edi
mov dword [esi + 0xd490], edi
call fcn.004aa017
cdq
mov ecx, 0x14
idiv ecx
mov dword [esi + 0x1adf4], edi
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x65335c], edx
add esp, 0x2c
ret 4
mov ecx, dword [0x652e10]
push ebx
push edx
call fcn.0047a670
test ax, ax
jne 0x411b81
pop edi
mov dword [esi + 0xd490], 0
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
push ecx
mov ecx, dword [0x652e0c]
push eax
add ecx, 4
call fcn.0043d410
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4