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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x58]
cmp eax, dword [ecx + 8]
jbe 0x4ae127
sub esp, 0xd8
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
call fcn.004a9500
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
je 0x4ad727
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
test ecx, ecx
je 0x4ad6c0
mov ecx, dword [ecx + 4]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edx
lea eax, [0x4ffc53]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
lea eax, [esp + 0xc0]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a7b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], ecx
add esp, 0xd8
ret
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov dword [esp + 4], 0x13
mov dword [esp + 8], 0
call fcn.004ae920
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
test eax, eax
jne 0x4adb54
mov dword [esp], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.004428f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0x40
call fcn.00466d00
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
test eax, eax
je 0x4ad8a0
mov dword [esp + 0x84], edx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.00408b80
mov eax, dword [esp + 8]
lea ecx, [0x4e69a0]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x4ad830
mov ecx, dword [eax + 4]
jmp 0x4ad832
mov ecx, eax
mov dword [esp + 0xd0], ecx
mov eax, dword [esp + 0x84]
mov dword [esp + 0xd4], eax
lea eax, [0x4fe01d]
mov dword [esp], eax
mov dword [esp + 4], 0x15
lea eax, [esp + 0xc8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a7b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], ecx
add esp, 0xd8
ret
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov dword [esp + 4], 0x14
mov dword [esp + 8], 0
call fcn.004ae920
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
test eax, eax
jne 0x4adb34
test ebx, ebx
jne 0x4ad8ed
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x28]
jmp 0x4ad92b
mov dword [esp], 0
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [0x51d080]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
call fcn.004426e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0xdc]
mov dword [esp], edx
call fcn.004ae140
mov eax, dword [esp + 4]
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0xdc]
mov dword [esp], edx
call fcn.004ae330
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 4]
mov ecx, dword [esp + 8]
test ebx, ebx
jne 0x4adb14
mov dword [esp + 0x2c], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x94], edi
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
call fcn.004aeb00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 4]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x4adaf4
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0xb8], ebp
mov dword [esp + 0x74], ebx
lea eax, [0x4f2ae0]
mov dword [esp], eax
call fcn.0040ae80
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xb8]
mov dword [eax], ecx
mov ecx, dword [0x5af9b0]
test ecx, ecx
jne 0x4ada1a
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
jmp 0x4ada2a
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x74]
call fcn.00452b40
mov eax, ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x5af9b0]
test ecx, ecx
jne 0x4ada4e
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0x1c], ecx
jmp 0x4ada61
lea edi, [eax + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x8c]
call fcn.00452b40
mov eax, ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x24], ecx
mov ecx, dword [0x5af9b0]
test ecx, ecx
jne 0x4ada7e
mov ecx, dword [esp + 0x94]
mov dword [eax + 0x20], ecx
jmp 0x4ada91
lea edi, [eax + 0x20]
mov ecx, eax
mov eax, dword [esp + 0x94]
call fcn.00452b40
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x34], ecx
mov ecx, dword [0x5af9b0]
test ecx, ecx
jne 0x4adab9
mov ecx, dword [esp + 0x78]
mov dword [eax + 0x30], ecx
jmp 0x4adac9
lea edi, [eax + 0x30]
mov ecx, eax
mov eax, dword [esp + 0x78]
call fcn.00452b40
mov eax, ecx
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x38], ecx
nop
mov ecx, dword [esp + 0xe0]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x70], edx
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x24], ecx
xor ebx, ebx
jmp 0x4adb81
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], edx
add esp, 0xd8
ret
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xec], esi
add esp, 0xd8
ret
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], edx
add esp, 0xd8
ret
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], edx
add esp, 0xd8
ret
mov ebp, dword [esp + 0x5c]
lea ebx, [ebp + 1]
mov ecx, dword [esp + 0x24]
mov edx, edi
cmp ebx, ecx
jge 0x4addaf
mov dword [esp + 0x5c], ebx
mov ebp, dword [edx + ebx*4]
mov dword [esp + 0x80], ebp
mov esi, dword [eax + 8]
mov dword [esp + 0xb4], esi
mov edi, edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x58], edx
lea ecx, [eax + 8]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
jmp 0x4ae0be
mov ebx, dword [esp + 0x88]
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
mov ebp, dword [ebx + 8]
mov esi, dword [esp + 0x34]
cmp esi, edx
ja 0x4ae11f
lea eax, [esi + 1]
cmp ecx, eax
jb 0x4ae11a
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
lea edi, [ecx - 1]
sub ecx, esi
sub edx, esi
dec edx
neg edx
shl eax, 2
sar edx, 0x1f
and eax, edx
add eax, ebp
lea edx, [ecx - 1]
mov esi, dword [esp + 0x54]
cmp esi, edi
jae 0x4adc5f
mov dword [esp + 0x54], edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0x50], ecx
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
lea eax, [0x4e03e0]
mov dword [esp + 0x10], eax
call fcn.0043fa70
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x50]
mov esi, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x98], ebp
lea ebx, [0x4e03e0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x58]
sub ebx, ecx
mov dword [esp + 0x58], ebx
sub esi, ebx
xchg esi, ebx
neg ebx
xchg esi, ebx
shl ebx, 2
sar esi, 0x1f
and esi, ebx
lea ebx, [ebp + esi]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x58]
sub edi, ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call fcn.0040ef80
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 0x10], eax
mov eax, dword [0x5af9b0]
test eax, eax
jne 0x4adce2
mov edx, dword [esp + 0x98]
mov dword [ecx + 8], edx
mov edi, dword [esp + 0xb0]
jmp 0x4adcf5
mov edi, dword [esp + 0xb0]
mov eax, dword [esp + 0x98]
call fcn.00452b40
mov eax, ecx
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
inc ecx
mov edx, dword [eax + 8]
mov esi, dword [eax + 0x10]
cmp esi, ecx
jae 0x4add7f
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x4e03e0]
mov dword [esp + 0x10], eax
call fcn.0043fa70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x88]
mov dword [ebx + 0x10], edx
mov edx, dword [0x5af9b0]
test edx, edx
jne 0x4add5b
mov dword [ebx + 8], eax
jmp 0x4add67
mov edi, dword [esp + 0xb0]
call fcn.00452b40
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x70]
mov edx, eax
mov eax, dword [esp + 0x88]
mov dword [eax + 0xc], ecx
mov esi, dword [0x5af9b0]
lea ebx, [edx + ecx*4 - 4]
test esi, esi
jne 0x4add99
mov dword [edx + ecx*4 - 4], ebp
jmp 0x4adb74
mov ecx, edi
mov edi, ebx
mov edx, eax
mov eax, ebp
call fcn.00452b40
mov eax, edx
mov edi, ecx
jmp 0x4adb74
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x90]
xor ebx, ebx
jmp 0x4addcb
mov ebp, dword [esp + 0x5c]
lea ebx, [ebp + 1]
mov ecx, dword [esp + 0x40]
mov edx, edi
cmp ebx, ecx
jge 0x4adff6
mov dword [esp + 0x5c], ebx
mov ebp, dword [edx + ebx*4]
mov dword [esp + 0x7c], ebp
mov esi, dword [eax + 8]
mov dword [esp + 0xac], esi
mov edi, edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x58], edx
lea ecx, [eax + 8]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
jmp 0x4ae035
mov ebx, dword [esp + 0x88]
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
mov ebp, dword [ebx + 8]
mov esi, dword [esp + 0x30]
cmp esi, edx
ja 0x4ae099
lea eax, [esi + 1]
cmp ecx, eax
jb 0x4ae094
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
lea edi, [ecx - 1]
sub ecx, esi
sub edx, esi
dec edx
neg edx
shl eax, 2
sar edx, 0x1f
and eax, edx
add eax, ebp
lea edx, [ecx - 1]
mov esi, dword [esp + 0x54]
cmp esi, edi
jae 0x4adea6
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0xa4], eax
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
lea eax, [0x4e03e0]
mov dword [esp + 0x10], eax
call fcn.0043fa70
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x54]
mov esi, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], esi
mov dword [esp + 0xa0], ebp
lea ebx, [0x4e03e0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x58]
sub ebx, ecx
mov dword [esp + 0x58], ebx
sub esi, ebx
xchg esi, ebx
neg ebx
xchg esi, ebx
shl ebx, 2
sar esi, 0x1f
and esi, ebx
lea ebx, [ebp + esi]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x58]
sub edi, ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call fcn.0040ef80
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 0x10], eax
mov eax, dword [0x5af9b0]
test eax, eax
jne 0x4adf29
mov edx, dword [esp + 0xa0]
mov dword [ecx + 8], edx
mov edi, dword [esp + 0xa8]
jmp 0x4adf3c
mov edi, dword [esp + 0xa8]
mov eax, dword [esp + 0xa0]
call fcn.00452b40
mov eax, ecx
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x90]
mov ecx, dword [eax + 0xc]
inc ecx
mov edx, dword [eax + 8]
mov esi, dword [eax + 0x10]
cmp esi, ecx
jae 0x4adfc6
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x4e03e0]
mov dword [esp + 0x10], eax
call fcn.0043fa70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x88]
mov dword [ebx + 0x10], edx
mov edx, dword [0x5af9b0]
test edx, edx
jne 0x4adfa2
mov dword [ebx + 8], eax
jmp 0x4adfae
mov edi, dword [esp + 0xa8]
call fcn.00452b40
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x90]
mov edx, eax
mov eax, dword [esp + 0x88]
mov dword [eax + 0xc], ecx
mov esi, dword [0x5af9b0]
lea ebx, [edx + ecx*4 - 4]
test esi, esi
jne 0x4adfe0
mov dword [edx + ecx*4 - 4], ebp
jmp 0x4addbe
mov ecx, edi
mov edi, ebx
mov edx, eax
mov eax, ebp
call fcn.00452b40
mov eax, edx
mov edi, ecx
jmp 0x4addbe
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
add esp, 0xd8
ret
inc ecx
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0xac]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x30]
cmp ecx, edx
jge 0x4adf4d
mov ebx, dword [esi + ecx*4]
mov esi, dword [ebp + 4]
mov ebp, dword [ebp]
mov dword [esp + 0xb8], ebp
mov ebp, dword [ebx]
cmp dword [ebx + 4], esi
jne 0x4ae01a
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.00402f20
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4ade0e
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x90]
jmp 0x4ae01a
call fcn.00452c20
mov ecx, esi
call fcn.00452c00
inc ecx
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0xb4]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x34]
cmp ecx, edx
jge 0x4add06
mov ebx, dword [esi + ecx*4]
mov esi, dword [ebp + 4]
mov ebp, dword [ebp]
mov dword [esp + 0xb8], ebp
mov ebp, dword [ebx]
cmp dword [ebx + 4], esi
jne 0x4ae0a0
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.00402f20
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4adbc7
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x70]
jmp 0x4ae0a0
call fcn.00452c20
mov ecx, esi
call fcn.00452c00
nop
call fcn.00451710
jmp fcn.004ad660