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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x19c4
call fcn.0041c880
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 0x4a0aa4
imul eax, eax, 0x354
cmp dword [eax + 0x500394], 7
jne 0x4a0aa4
mov edi, dword [ebp + 0xc]
cmp dword [edi], 0x20
jae 0x4a0a4a
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.004d9510
add esp, 4
lea ecx, [esp + 0x98]
mov edx, ebx
call fcn.004d9490
push ecx
push 1
lea eax, [esp + 0x7c]
lea edx, [esp + 0xa0]
push 1
push eax
mov ecx, edx
call fcn.004d5970
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a0a9b
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x98]
call fcn.004d47f0
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.004a3f30
add esp, 4
test eax, eax
jne 0x4a1349
lea ecx, [esp + 0x38]
call fcn.004a1440
mov ecx, dword [esp + 0x2c]
mov edi, eax
test edi, edi
je 0x4a0b2c
test ecx, ecx
je 0x4a1349
call fcn.004a40b0
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 0x4a0b48
mov ebx, 0xffffff14
jmp 0x4a1207
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.004a14f0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x4a1207
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 4]
mov dword [esp + 0x18], edx
test edx, edx
je 0x4a1202
cmp dword [edx], eax
je 0x4a1202
mov edx, dword [edx + 0xc]
test dl, 1
je 0x4a1202
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 0x4a11fb
lea ebx, [edi + 0x820]
test ebx, ebx
je 0x4a0c40
cmp dword [ebx + 8], 1
je 0x4a0c40
mov eax, dword [ebx]
cmp eax, 1
jg 0x4a0c40
test eax, eax
je 0x4a0bed
cmp dword [ebx + 0xc], 0
ja 0x4a0c40
lea eax, [edi + 0x410]
mov dword [edi + 0xc], 0
mov dword [edi], 0
mov dword [edi + 8], 0
test eax, eax
jne 0x4a0c15
mov eax, 0xfffffffd
jmp 0x4a0fd7
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 0x4a0fd7
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.004bc8a0
add esp, 8
test eax, eax
jne 0x4a0f95
mov eax, dword [esi]
test eax, eax
je 0x4a0f90
lea eax, [eax*2 + 1]
cmp dword [esp + 0x17c], eax
jl 0x4a0f90
push dword [esp + 0x10]
mov edx, esi
lea ecx, [esp + 0x17c]
call fcn.004b8670
add esp, 4
test eax, eax
jne 0x4a0f95
lea edx, [esp + 0x588]
lea ecx, [esp + 0x178]
call fcn.004bd290
test eax, eax
jne 0x4a0f95
lea eax, [esp + 0x588]
mov edx, esi
push eax
mov ecx, eax
call fcn.004be4c0
add esp, 4
test eax, eax
jne 0x4a0f95
lea eax, [esp + 0x178]
push eax
lea edx, [esp + 0x58c]
mov ecx, eax
call fcn.004bef40
add esp, 4
test eax, eax
jne 0x4a0f95
lea eax, [esp + 0x178]
mov edx, esi
push eax
mov ecx, eax
call fcn.004be4c0
add esp, 4
test eax, eax
jne 0x4a0f95
mov eax, dword [edi]
mov ecx, dword [esp + 0x588]
lea edx, [eax + ecx]
mov dword [esp + 0xc], edx
cmp edx, dword [edi + 4]
jg 0x4a0f90
mov edx, dword [edi + 8]
xor edx, dword [esp + 0x590]
mov dword [esp + 0x48], edx
test eax, eax
je 0x4a0ee3
test ecx, ecx
je 0x4a0ee3
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 0x4a0e94
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 0x4a0e50
lea ebx, [edi + 0xc]
lea ebx, [ebx + ecx*4]
test esi, esi
js 0x4a0e48
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 0x4a0e20
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 0x4a0e06
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.0041d1d0
mov eax, dword [edi]
add esp, 0xc
sub eax, 1
js 0x4a0ed0
lea ecx, [edi + 0xc]
lea ecx, [ecx + eax*4]
cmp dword [ecx], 0
jne 0x4a0ed0
sub ecx, 4
sub eax, 1
jns 0x4a0ec3
mov ecx, dword [esp + 0x10]
lea ebx, [edi + 0x820]
mov edx, dword [esp + 0x48]
inc eax
mov dword [edi], eax
jmp 0x4a0eff
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 0x4a0f90
lea eax, [eax*2 + 1]
cmp dword [edi + 4], eax
jl 0x4a0f90
push ecx
mov edx, esi
mov ecx, edi
call fcn.004b8670
add esp, 4
test eax, eax
jne 0x4a0f95
lea eax, [edi + 0x410]
push eax
lea edx, [esp + 0x17c]
mov ecx, eax
call fcn.004bef40
add esp, 4
test eax, eax
jne 0x4a0f95
lea ecx, [edi + 0x410]
test ecx, ecx
je 0x4a0f90
mov eax, dword [esi]
test eax, eax
je 0x4a0f90
lea eax, [eax*2 + 1]
cmp dword [ecx + 4], eax
jl 0x4a0f90
push dword [esp + 0x10]
mov edx, esi
call fcn.004b8670
add esp, 4
test eax, eax
jne 0x4a0f95
test ebx, ebx
je 0x4a0f90
mov dword [ebx + 0xc], 1
mov dword [ebx], 1
mov dword [ebx + 8], eax
jmp 0x4a0f95
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 0x4a1207
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
call fcn.004be8c0
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x3c], ebx
cmp dword [eax], ebx
jb 0x4a11f4
mov eax, dword [edi]
sub eax, 1
js 0x4a1021
lea ecx, [edi + 0xc]
lea ecx, [ecx + eax*4]
nop dword [eax + eax]
cmp dword [ecx], 0
jne 0x4a110d
sub ecx, 4
sub eax, 1
jns 0x4a1010
xor eax, eax
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp ebx, eax
jl 0x4a11f4
mov esi, dword [ebp + 8]
push ebx
push 0
push esi
call fcn.0041d750
mov ecx, dword [edi]
add esp, 0xc
sub ecx, 1
mov eax, ecx
js 0x4a1066
lea edx, [edi + 0xc]
lea edx, [edx + eax*4]
cmp dword [edx], 0
jne 0x4a114c
sub edx, 4
sub eax, 1
jns 0x4a1055
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 0x4a1093
lea eax, [edi + 0xc]
lea eax, [eax + ecx*4]
cmp dword [eax], 0
jne 0x4a118c
sub eax, 4
sub ecx, 1
jns 0x4a1082
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 0x4a1202
cmp dword [edi], 0
lea edx, [eax - 1]
je 0x4a11cc
xor eax, eax
mov dword [esp + 0x18], eax
test edx, edx
js 0x4a11f0
lea esi, [edi + 0xc]
nop
cmp eax, dword [edi]
jge 0x4a11cc
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [esi]
shr eax, cl
mov byte [edx + ebx], al
sub edx, 1
js 0x4a10f4
add ecx, 8
cmp ecx, 0x20
jl 0x4a10e0
mov eax, dword [esp + 0x18]
add esi, 4
inc eax
mov dword [esp + 0x18], eax
test edx, edx
jns 0x4a10d0
mov ebx, dword [esp + 0xc]
jmp 0x4a1207
test eax, eax
js 0x4a1021
mov ecx, dword [edi + eax*4 + 0xc]
shl eax, 5
cmp ecx, 0xffff
jbe 0x4a113a
add eax, 0x20
test ecx, ecx
js 0x4a1023
nop
dec eax
add ecx, ecx
jns 0x4a1130
jmp 0x4a1023
test ecx, ecx
je 0x4a1023
inc eax
shr ecx, 1
jne 0x4a1142
jmp 0x4a1023
test eax, eax
js 0x4a1066
mov edx, dword [edi + eax*4 + 0xc]
shl eax, 5
cmp edx, 0xffff
jbe 0x4a117a
add eax, 0x20
test edx, edx
js 0x4a1068
nop
dec eax
add edx, edx
jns 0x4a1170
jmp 0x4a1068
test edx, edx
je 0x4a1068
inc eax
shr edx, 1
jne 0x4a1182
jmp 0x4a1068
test ecx, ecx
js 0x4a1093
mov eax, dword [edi + ecx*4 + 0xc]
shl ecx, 5
cmp eax, 0xffff
jbe 0x4a11ba
add ecx, 0x20
test eax, eax
js 0x4a1095
nop dword [eax]
dec ecx
add eax, eax
jns 0x4a11b0
jmp 0x4a1095
test eax, eax
je 0x4a1095
inc ecx
shr eax, 1
jne 0x4a11c2
jmp 0x4a1095
test edx, edx
js 0x4a1104
lea eax, [edx + 1]
sub ebx, eax
push eax
push 0
lea eax, [ebx + 1]
add eax, edx
push eax
call fcn.0041d750
mov ebx, dword [esp + 0x18]
add esp, 0xc
jmp 0x4a1207
mov ebx, eax
jmp 0x4a1207
mov ebx, 0xffffff7c
jmp 0x4a1207
mov ebx, 0xffffff56
jmp 0x4a1207
mov ebx, 0xfffffffd
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x3c]
mov dword [ecx], eax
test edi, edi
je 0x4a1240
mov eax, dword [edi + 4]
lea ecx, [edi + 0xc]
shl eax, 2
test eax, eax
je 0x4a122c
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x4a1221
mov dword [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
lea edx, [edi + 0x410]
test edx, edx
je 0x4a1276
mov eax, dword [edx + 4]
lea ecx, [edx + 0xc]
shl eax, 2
test eax, eax
je 0x4a1262
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x4a1257
mov dword [edx], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
test edi, edi
je 0x4a1338
xor eax, eax
cmp dword [edi], eax
jle 0x4a129e
lea ecx, [edi + 0xc]
nop word [eax + eax]
mov dword [ecx], 0
lea ecx, [ecx + 4]
inc eax
cmp eax, dword [edi]
jl 0x4a1290
lea edx, [edi + 0x410]
mov dword [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
test edx, edx
je 0x4a12e7
xor ecx, ecx
cmp dword [edx], ecx
jle 0x4a12d3
lea eax, [edx + 0xc]
mov dword [eax], 0
lea eax, [eax + 4]
inc ecx
cmp ecx, dword [edx]
jl 0x4a12c5
mov dword [edx], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
lea edx, [edi + 0x820]
test edx, edx
je 0x4a1322
xor ecx, ecx
cmp dword [edx], ecx
jle 0x4a130e
lea eax, [edx + 0xc]
nop word [eax + eax]
mov dword [eax], 0
lea eax, [eax + 4]
inc ecx
cmp ecx, dword [edx]
jl 0x4a1300
mov dword [edx], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
mov eax, dword [0x420ede8]
push edi
test eax, eax
je 0x4a1330
call eax
jmp 0x4a1335
call fcn.0042a55b
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4a1347
mov ecx, eax
call fcn.004a40b0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret