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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x19c4
call fcn.0041c820
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov eax, dword [esi + 4]
lea ecx, [esi + 0xc48]
cmp eax, 0xffffffff
je 0x4a07c4
imul eax, eax, 0x354
cmp dword [eax + 0x4ff394], 7
jne 0x4a07c4
mov edi, dword [ebp + 0xc]
cmp dword [edi], 0x20
jae 0x4a076a
mov esi, 0xffffff7c
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [esp + 0x78]
call fcn.004d92a0
add esp, 4
lea ecx, [esp + 0x98]
mov edx, ebx
call fcn.004d9220
push ecx
push 1
lea eax, [esp + 0x7c]
lea edx, [esp + 0xa0]
push 1
push eax
mov ecx, edx
call fcn.004d5700
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a07bb
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x98]
call fcn.004d4580
mov dword [edi], 0x20
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x4c]
xorps xmm0, xmm0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xda0]
mov dword [esp + 0x38], 0
push 0xb
lea edx, [esp + 0x30]
mov dword [esp + 0x40], 0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x70], xmm0
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 3
call fcn.004a3c50
add esp, 4
test eax, eax
jne 0x4a1069
lea ecx, [esp + 0x38]
call fcn.004a1160
mov ecx, dword [esp + 0x2c]
mov edi, eax
test edi, edi
je 0x4a084c
test ecx, ecx
je 0x4a1069
call fcn.004a3dd0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1058]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
test eax, eax
jne 0x4a0868
mov ebx, 0xffffff14
jmp 0x4a0f27
sub esp, 8
mov edx, ebx
push eax
push dword [ecx + 0xc]
push dword [ecx + 4]
push ecx
push edi
lea ecx, [esi + 0xc48]
call fcn.004a1210
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x4a0f27
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 4]
mov dword [esp + 0x18], edx
test edx, edx
je 0x4a0f22
cmp dword [edx], eax
je 0x4a0f22
mov edx, dword [edx + 0xc]
test dl, 1
je 0x4a0f22
lea ecx, [edx + edx*2]
mov esi, 1
xor ecx, 2
mov eax, ecx
imul eax, edx
sub esi, eax
lea edx, [esi + 1]
imul esi, esi
imul edx, ecx
mov ecx, esi
imul ecx, esi
lea eax, [esi + 1]
not ecx
imul ecx, eax
imul ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
je 0x4a0f1b
lea ebx, [edi + 0x820]
test ebx, ebx
je 0x4a0960
cmp dword [ebx + 8], 1
je 0x4a0960
mov eax, dword [ebx]
cmp eax, 1
jg 0x4a0960
test eax, eax
je 0x4a090d
cmp dword [ebx + 0xc], 0
ja 0x4a0960
lea eax, [edi + 0x410]
mov dword [edi + 0xc], 0
mov dword [edi], 0
mov dword [edi + 8], 0
test eax, eax
jne 0x4a0935
mov eax, 0xfffffffd
jmp 0x4a0cf7
mov dword [eax + 0xc], 0
mov dword [eax], 0
mov dword [eax + 8], 0
xor eax, eax
mov dword [ebx + 0xc], 1
mov dword [ebx], 1
mov dword [ebx + 8], eax
jmp 0x4a0cf7
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x178]
push ecx
mov dword [esp + 0x17c], 0
mov edx, esi
mov dword [esp + 0x188], 0
mov ecx, ebx
mov dword [esp + 0x184], 0
mov dword [esp + 0x180], 0x101
mov dword [esp + 0x58c], 0
mov dword [esp + 0x598], 0
mov dword [esp + 0x594], 0
push eax
mov dword [esp + 0x594], 0x101
call fcn.004bc620
add esp, 8
test eax, eax
jne 0x4a0cb5
mov eax, dword [esi]
test eax, eax
je 0x4a0cb0
lea eax, [eax*2 + 1]
cmp dword [esp + 0x17c], eax
jl 0x4a0cb0
push dword [esp + 0x10]
mov edx, esi
lea ecx, [esp + 0x17c]
call fcn.004b8400
add esp, 4
test eax, eax
jne 0x4a0cb5
lea edx, [esp + 0x588]
lea ecx, [esp + 0x178]
call fcn.004bd010
test eax, eax
jne 0x4a0cb5
lea eax, [esp + 0x588]
mov edx, esi
push eax
mov ecx, eax
call fcn.004be240
add esp, 4
test eax, eax
jne 0x4a0cb5
lea eax, [esp + 0x178]
push eax
lea edx, [esp + 0x58c]
mov ecx, eax
call fcn.004becc0
add esp, 4
test eax, eax
jne 0x4a0cb5
lea eax, [esp + 0x178]
mov edx, esi
push eax
mov ecx, eax
call fcn.004be240
add esp, 4
test eax, eax
jne 0x4a0cb5
mov eax, dword [edi]
mov ecx, dword [esp + 0x588]
lea edx, [eax + ecx]
mov dword [esp + 0xc], edx
cmp edx, dword [edi + 4]
jg 0x4a0cb0
mov edx, dword [edi + 8]
xor edx, dword [esp + 0x590]
mov dword [esp + 0x48], edx
test eax, eax
je 0x4a0c03
test ecx, ecx
je 0x4a0c03
mov eax, dword [edi + 0xc]
xor ebx, ebx
mul dword [esp + 0x594]
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xc]
add edx, 0xfffffffe
mov dword [esp + 0x998], eax
mov eax, 1
mov dword [esp + 0x44], edx
cmp edx, eax
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x14]
jl 0x4a0bb4
sub eax, ecx
mov esi, 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
add eax, esi
mov ecx, eax
shr ecx, 0x1f
dec ecx
and ecx, eax
sub esi, ecx
cmp ecx, dword [edi]
jge 0x4a0b70
lea ebx, [edi + 0xc]
lea ebx, [ebx + ecx*4]
test esi, esi
js 0x4a0b68
mov eax, dword [ebx]
mul dword [esp + esi*4 + 0x594]
add dword [esp + 0x14], eax
adc dword [esp + 0x1c], 0
add dword [esp + 0x20], edx
adc dword [esp + 0xc], 0
inc ecx
add ebx, 4
dec esi
cmp ecx, dword [edi]
jl 0x4a0b40
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + esi*4 + 0x998], edx
mov edx, ebx
xor ebx, ebx
add edx, dword [esp + 0x20]
mov dword [esp + 0x14], edx
adc ebx, ebx
mov dword [esp + 0x20], eax
inc esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], esi
cmp esi, dword [esp + 0x44]
jle 0x4a0b26
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov dword [esp + eax*4 + 0x998], edx
inc eax
mov dword [edi], eax
shl eax, 2
push eax
lea eax, [esp + 0x99c]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.0041d170
mov eax, dword [edi]
add esp, 0xc
sub eax, 1
js 0x4a0bf0
lea ecx, [edi + 0xc]
lea ecx, [ecx + eax*4]
cmp dword [ecx], 0
jne 0x4a0bf0
sub ecx, 4
sub eax, 1
jns 0x4a0be3
mov ecx, dword [esp + 0x10]
lea ebx, [edi + 0x820]
mov edx, dword [esp + 0x48]
inc eax
mov dword [edi], eax
jmp 0x4a0c1f
mov ecx, dword [esp + 0x10]
mov dword [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [esp + 0x10], ecx
xor eax, eax
cmp dword [edi], eax
cmove edx, eax
mov dword [edi + 8], edx
mov eax, dword [esi]
test eax, eax
je 0x4a0cb0
lea eax, [eax*2 + 1]
cmp dword [edi + 4], eax
jl 0x4a0cb0
push ecx
mov edx, esi
mov ecx, edi
call fcn.004b8400
add esp, 4
test eax, eax
jne 0x4a0cb5
lea eax, [edi + 0x410]
push eax
lea edx, [esp + 0x17c]
mov ecx, eax
call fcn.004becc0
add esp, 4
test eax, eax
jne 0x4a0cb5
lea ecx, [edi + 0x410]
test ecx, ecx
je 0x4a0cb0
mov eax, dword [esi]
test eax, eax
je 0x4a0cb0
lea eax, [eax*2 + 1]
cmp dword [ecx + 4], eax
jl 0x4a0cb0
push dword [esp + 0x10]
mov edx, esi
call fcn.004b8400
add esp, 4
test eax, eax
jne 0x4a0cb5
test ebx, ebx
je 0x4a0cb0
mov dword [ebx + 0xc], 1
mov dword [ebx], 1
mov dword [ebx + 8], eax
jmp 0x4a0cb5
mov eax, 0xfffffffd
mov dword [esp + 0x178], 0
mov dword [esp + 0x184], 0
mov dword [esp + 0x180], 0
mov dword [esp + 0x588], 0
mov dword [esp + 0x594], 0
mov dword [esp + 0x590], 0
mov ebx, eax
test eax, eax
jne 0x4a0f27
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
call fcn.004be640
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x3c], ebx
cmp dword [eax], ebx
jb 0x4a0f14
mov eax, dword [edi]
sub eax, 1
js 0x4a0d41
lea ecx, [edi + 0xc]
lea ecx, [ecx + eax*4]
nop dword [eax + eax]
cmp dword [ecx], 0
jne 0x4a0e2d
sub ecx, 4
sub eax, 1
jns 0x4a0d30
xor eax, eax
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp ebx, eax
jl 0x4a0f14
mov esi, dword [ebp + 8]
push ebx
push 0
push esi
call fcn.0041d6f0
mov ecx, dword [edi]
add esp, 0xc
sub ecx, 1
mov eax, ecx
js 0x4a0d86
lea edx, [edi + 0xc]
lea edx, [edx + eax*4]
cmp dword [edx], 0
jne 0x4a0e6c
sub edx, 4
sub eax, 1
jns 0x4a0d75
xor eax, eax
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
sub ebx, eax
add ebx, esi
test ecx, ecx
js 0x4a0db3
lea eax, [edi + 0xc]
lea eax, [eax + ecx*4]
cmp dword [eax], 0
jne 0x4a0eac
sub eax, 4
sub ecx, 1
jns 0x4a0da2
xor ecx, ecx
lea eax, [ecx + 7]
mov dword [esp + 0xc], 0
cdq
and edx, 7
add eax, edx
sar eax, 3
test ebx, ebx
je 0x4a0f22
cmp dword [edi], 0
lea edx, [eax - 1]
je 0x4a0eec
xor eax, eax
mov dword [esp + 0x18], eax
test edx, edx
js 0x4a0f10
lea esi, [edi + 0xc]
nop
cmp eax, dword [edi]
jge 0x4a0eec
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [esi]
shr eax, cl
mov byte [edx + ebx], al
sub edx, 1
js 0x4a0e14
add ecx, 8
cmp ecx, 0x20
jl 0x4a0e00
mov eax, dword [esp + 0x18]
add esi, 4
inc eax
mov dword [esp + 0x18], eax
test edx, edx
jns 0x4a0df0
mov ebx, dword [esp + 0xc]
jmp 0x4a0f27
test eax, eax
js 0x4a0d41
mov ecx, dword [edi + eax*4 + 0xc]
shl eax, 5
cmp ecx, 0xffff
jbe 0x4a0e5a
add eax, 0x20
test ecx, ecx
js 0x4a0d43
nop
dec eax
add ecx, ecx
jns 0x4a0e50
jmp 0x4a0d43
test ecx, ecx
je 0x4a0d43
inc eax
shr ecx, 1
jne 0x4a0e62
jmp 0x4a0d43
test eax, eax
js 0x4a0d86
mov edx, dword [edi + eax*4 + 0xc]
shl eax, 5
cmp edx, 0xffff
jbe 0x4a0e9a
add eax, 0x20
test edx, edx
js 0x4a0d88
nop
dec eax
add edx, edx
jns 0x4a0e90
jmp 0x4a0d88
test edx, edx
je 0x4a0d88
inc eax
shr edx, 1
jne 0x4a0ea2
jmp 0x4a0d88
test ecx, ecx
js 0x4a0db3
mov eax, dword [edi + ecx*4 + 0xc]
shl ecx, 5
cmp eax, 0xffff
jbe 0x4a0eda
add ecx, 0x20
test eax, eax
js 0x4a0db5
nop dword [eax]
dec ecx
add eax, eax
jns 0x4a0ed0
jmp 0x4a0db5
test eax, eax
je 0x4a0db5
inc ecx
shr eax, 1
jne 0x4a0ee2
jmp 0x4a0db5
test edx, edx
js 0x4a0e24
lea eax, [edx + 1]
sub ebx, eax
push eax
push 0
lea eax, [ebx + 1]
add eax, edx
push eax
call fcn.0041d6f0
mov ebx, dword [esp + 0x18]
add esp, 0xc
jmp 0x4a0f27
mov ebx, eax
jmp 0x4a0f27
mov ebx, 0xffffff7c
jmp 0x4a0f27
mov ebx, 0xffffff56
jmp 0x4a0f27
mov ebx, 0xfffffffd
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x3c]
mov dword [ecx], eax
test edi, edi
je 0x4a0f60
mov eax, dword [edi + 4]
lea ecx, [edi + 0xc]
shl eax, 2
test eax, eax
je 0x4a0f4c
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x4a0f41
mov dword [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
lea edx, [edi + 0x410]
test edx, edx
je 0x4a0f96
mov eax, dword [edx + 4]
lea ecx, [edx + 0xc]
shl eax, 2
test eax, eax
je 0x4a0f82
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x4a0f77
mov dword [edx], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
test edi, edi
je 0x4a1058
xor eax, eax
cmp dword [edi], eax
jle 0x4a0fbe
lea ecx, [edi + 0xc]
nop word [eax + eax]
mov dword [ecx], 0
lea ecx, [ecx + 4]
inc eax
cmp eax, dword [edi]
jl 0x4a0fb0
lea edx, [edi + 0x410]
mov dword [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
test edx, edx
je 0x4a1007
xor ecx, ecx
cmp dword [edx], ecx
jle 0x4a0ff3
lea eax, [edx + 0xc]
mov dword [eax], 0
lea eax, [eax + 4]
inc ecx
cmp ecx, dword [edx]
jl 0x4a0fe5
mov dword [edx], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
lea edx, [edi + 0x820]
test edx, edx
je 0x4a1042
xor ecx, ecx
cmp dword [edx], ecx
jle 0x4a102e
lea eax, [edx + 0xc]
nop word [eax + eax]
mov dword [eax], 0
lea eax, [eax + 4]
inc ecx
cmp ecx, dword [edx]
jl 0x4a1020
mov dword [edx], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
mov eax, dword [0x55587c]
push edi
test eax, eax
je 0x4a1050
call eax
jmp 0x4a1055
call fcn.0042a4fb
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4a1067
mov ecx, eax
call fcn.004a3dd0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret