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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x63a800]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x78], edx
mov byte [esp + 0x3c], cl
movzx ecx, cl
mov edx, dword [eax + ecx*4 + 0x1830]
mov dword [esp + 0x20], edx
xor edx, edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x14]
push ebx
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x20]
or edx, dword [ebp + 0x24]
push esi
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x5c], ecx
je 0x40b1b8
mov ebx, ecx
imul ebx, ebx, 0x68
or edx, 0xffffffff
mov dword [esp + 0x74], ebx
cmp dword [ebx + eax + 0x1ac], edx
jne 0x40ae7b
mov eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.005ac396
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [esp + 0x2c]
movzx ecx, byte [eax + 0x6c]
mov eax, 1
xor edx, edx
call fcn.005b3a30
mov ebx, dword [ebx + 0x642c64]
mov edi, eax
mov esi, edx
xor eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
cmp edi, ebx
jne 0x40b1b8
cmp esi, eax
jne 0x40b1b8
mov ecx, edi
or ecx, esi
je 0x40b1b8
mov edx, dword [esp + 0x2c]
movzx ecx, byte [edx + 0x6d]
mov eax, 1
xor edx, edx
call fcn.005b3a30
test eax, eax
je 0x40b1b8
push esi
push edi
push 0
push eax
call fcn.005af0e0
mov ecx, dword [ebp + 0x18]
push edx
push eax
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x1c]
push eax
push ecx
mov dword [esp + 0x7c], edx
call fcn.005bd2c0
push esi
push edi
push ebx
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebx
call fcn.005bd2c0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov al, byte [ebp + 0xc]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x78], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
cmp al, 1
je 0x40b247
cmp al, 3
jne 0x40b1b8
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004898a6
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x40b1b8
cmp dword [ebp + 0x24], 0
jb 0x40b20b
ja 0x40af80
cmp dword [ebp + 0x20], 0
jbe 0x40b20b
nop
cmp dword [esp + 0x7c], 0
ja 0x40b177
jb 0x40af98
cmp dword [esp + 0x78], 0
ja 0x40b177
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
push edx
push eax
push ecx
mov edi, esi
call fcn.0041f430
add eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
mov ecx, dword [esi + ecx*4 + 0x1758]
adc edx, dword [esp + 0x54]
mov edi, dword [ecx + 0x10]
add edi, dword [ecx + 8]
mov ebx, dword [ecx + 0x14]
adc ebx, dword [ecx + 0xc]
cmp edx, ebx
ja 0x40b23d
jb 0x40afe3
cmp eax, edi
jae 0x40b23d
mov ecx, dword [esp + 0x5c]
mov ecx, dword [esi + ecx*4 + 0x1758]
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
add edi, 1
adc ecx, 0
cmp edx, ecx
jb 0x40b23d
ja 0x40b00c
cmp eax, edi
jb 0x40b23d
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.005af0e0
mov ecx, dword [esp + 0x74]
push 0
mov dword [esp + 0x48], edx
push 0
lea edx, [esp + 0x4c]
push edx
lea ecx, [ecx + esi + 0x168]
push eax
push ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], ecx
call fcn.00444d10
add esp, 0x14
cmp eax, 0xffffffff
je 0x40b233
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0xc]
push esi
push 0
push eax
call fcn.005afd80
mov eax, dword [esp + 0x78]
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
add esp, 0xc
mov edx, esi
sub edx, dword [esp + 0x38]
sbb eax, dword [esp + 0x3c]
sub ebx, dword [esp + 0x10]
sbb ecx, dword [esp + 0x14]
cmp ecx, eax
jb 0x40b090
ja 0x40b08a
cmp ebx, edx
jb 0x40b090
mov edi, edx
mov esi, eax
jmp 0x40b094
mov edi, ebx
mov esi, ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x34]
add eax, edi
push edx
adc ecx, esi
push ecx
push eax
call fcn.005bd2c0
or ecx, ebx
mov dword [esp + 0x94], edx
je 0x40b0bd
inc eax
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
imul edx, eax
add ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
push 0
push 0
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x50]
push ebx
push eax
push ecx
push edx
call fcn.00445150
add esp, 0x20
test eax, eax
je 0x40b23d
mov eax, 0x1b
push edi
mov dword [esp + 0x64], eax
mov dword [0x642a20], eax
mov eax, dword [esp + 0x88]
push ebx
mov ebx, dword [esp + 0x18]
lea ecx, [ebx + eax]
push ecx
mov dword [0x642a1c], 0x1000
call fcn.005ae670
add esp, 0xc
add ebx, edi
mov edi, dword [esp + 0x14]
adc edi, esi
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
cmp ebx, eax
jne 0x40b164
cmp edi, dword [ebp + 0x24]
je 0x40b549
cmp edi, dword [ebp + 0x24]
ja 0x40b233
jb 0x40b177
cmp ebx, eax
ja 0x40b233
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
push edx
push eax
push 2
push ecx
mov cl, byte [esp + 0x58]
call fcn.0040a2e0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x40b1eb
cmp eax, 0xfffffff0
jb 0x40b1d5
test edx, edx
jne 0x40b1eb
cmp eax, 0xfffffff8
jae 0x40b1de
mov eax, dword [esp + 0xc]
push eax
call fcn.0048989b
add esp, 4
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.005ac396
mov esp, ebp
pop ebp
ret 0x20
test edx, edx
jne 0x40b1eb
cmp eax, 0xfffffff8
jb 0x40b1eb
test edx, edx
jne 0x40b1eb
cmp eax, 0xffffffff
jbe 0x40b571
mov edx, dword [ebp + 0x24]
cmp dword [esp + 0x14], edx
jb 0x40af80
ja 0x40b207
mov eax, dword [ebp + 0x20]
cmp dword [esp + 0x10], eax
jb 0x40af80
mov eax, dword [esp + 0xc]
push eax
call fcn.0048989b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.005ac396
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x40b1b0
mov edx, dword [esp + 0xc]
push edx
jmp 0x40b1b0
mov edx, dword [esp + 0x68]
push edx
call fcn.004898a6
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x40b1b8
cmp dword [ebp + 0x24], 0
jb 0x40b20b
ja 0x40b270
cmp dword [ebp + 0x20], 0
jbe 0x40b20b
mov edi, edi
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x64], eax
jb 0x40b469
ja 0x40b28e
mov ecx, dword [esp + 0x78]
cmp dword [esp + 0x60], ecx
jb 0x40b469
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
push edx
push eax
push ecx
mov edi, esi
call fcn.0041f430
add eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
mov ecx, dword [esi + ecx*4 + 0x1758]
adc edx, dword [esp + 0x54]
mov edi, dword [ecx + 0x10]
add edi, dword [ecx + 8]
mov ebx, dword [ecx + 0x14]
adc ebx, dword [ecx + 0xc]
cmp edx, ebx
ja 0x40b23d
jb 0x40b2d9
cmp eax, edi
jae 0x40b23d
mov ecx, dword [esp + 0x5c]
mov ecx, dword [esi + ecx*4 + 0x1758]
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
add edi, 1
adc ecx, 0
cmp edx, ecx
jb 0x40b23d
ja 0x40b302
cmp eax, edi
jb 0x40b23d
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.005af0e0
mov ecx, dword [esp + 0x74]
push 0
mov dword [esp + 0x48], edx
push 0
lea edx, [esp + 0x4c]
push edx
lea ecx, [ecx + esi + 0x168]
push eax
push ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], ecx
call fcn.00444d10
add esp, 0x14
cmp eax, 0xffffffff
je 0x40b233
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0xc]
push esi
push 0
push eax
call fcn.005afd80
mov eax, dword [esp + 0x78]
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
add esp, 0xc
mov edx, esi
sub edx, dword [esp + 0x38]
sbb eax, dword [esp + 0x3c]
sub ebx, dword [esp + 0x10]
sbb ecx, dword [esp + 0x14]
cmp ecx, eax
jb 0x40b386
ja 0x40b380
cmp ebx, edx
jb 0x40b386
mov edi, edx
mov esi, eax
jmp 0x40b38a
mov edi, ebx
mov esi, ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x34]
add eax, edi
push edx
adc ecx, esi
push ecx
push eax
call fcn.005bd2c0
or ecx, ebx
mov dword [esp + 0x94], edx
je 0x40b3b3
inc eax
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
imul edx, eax
add ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
push 0
push 0
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x50]
push ebx
push eax
push ecx
push edx
call fcn.00445150
add esp, 0x20
test eax, eax
je 0x40b23d
mov eax, dword [esp + 0x84]
push edi
push ebx
mov ebx, dword [esp + 0x18]
lea ecx, [ebx + eax]
push ecx
mov dword [0x642a1c], 0x1000
mov dword [0x642a20], 0x1a
call fcn.005ae670
add esp, 0xc
add ebx, edi
mov edi, dword [esp + 0x14]
adc edi, esi
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
cmp ebx, eax
jne 0x40b456
cmp edi, dword [ebp + 0x24]
je 0x40b549
cmp edi, dword [ebp + 0x24]
ja 0x40b233
jb 0x40b469
cmp ebx, eax
ja 0x40b233
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x4c]
mov cl, byte [esp + 0x48]
push edx
push eax
push 0
push esi
call fcn.0040a2e0
mov ecx, eax
or ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jne 0x40b4de
mov ecx, dword [esi + 0x1918]
mov edi, dword [esi + 0x191c]
mov ebx, ecx
or ebx, edi
je 0x40b4f6
mov esi, dword [esi + 0x1974]
test esi, esi
je 0x40b4f6
test edi, edi
jb 0x40b51a
ja 0x40b4c0
test ecx, ecx
je 0x40b51a
jmp 0x40b4c0
add eax, 1
adc edx, 0
cmp dword [esi + eax*4], 0
je 0x40b4d6
cmp edx, edi
jb 0x40b4c0
ja 0x40b4d6
cmp eax, ecx
jb 0x40b4c0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
jne 0x40b51a
cmp eax, 0xfffffff0
jb 0x40b508
test edx, edx
jne 0x40b51a
cmp eax, 0xfffffff8
jb 0x40b1ab
jmp 0x40b511
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
jmp 0x40b51a
test edx, edx
jne 0x40b51a
cmp eax, 0xfffffff8
jb 0x40b51a
test edx, edx
jne 0x40b51a
cmp eax, 0xffffffff
jbe 0x40b571
add dword [esp + 0x60], 1
mov edx, dword [ebp + 0x24]
adc dword [esp + 0x64], 0
cmp dword [esp + 0x14], edx
jb 0x40b270
ja 0x40b207
mov eax, dword [ebp + 0x20]
cmp dword [esp + 0x10], eax
jb 0x40b270
jmp 0x40b207
mov eax, dword [esp + 0xc]
push eax
call fcn.0048989b
add esp, 4
mov eax, ebx
mov edx, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.005ac396
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0048989b
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005ac396
mov esp, ebp
pop ebp
ret 0x20