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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [esp + 0x10]
mov dword [esp + 0x84], ebx
call fcn.004aa350
mov esi, dword [ebp + 8]
push esi
mov ecx, ebx
call fcn.004a1de0
mov eax, dword [esi + 4]
mov edx, dword [esi]
shr eax, 1
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea esi, [edx + ecx*8 - 0x78]
lea edx, [ebx + 0x188]
lea eax, [esi + 0x34]
lea ecx, [esp + 0x70]
mov dword [esp + 0x50], esi
call fcn.004b9be0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x60]
cmp ecx, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edi
jge 0x4aa49f
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x64]
cmp edx, eax
jge 0x4aa4aa
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x68]
cmp dword [esp + 0x44], eax
jle 0x4aa4b7
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x6c]
cmp dword [esp + 0x48], eax
jle 0x4aa4c4
mov dword [esp + 0x48], eax
cmp dword [ebx + 0x338], 0
mov dword [esp + 0x10], 0
jne 0x4aa4e5
call fcn.004aa3c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x248]
fld qword [ebx + 0x310]
imul eax, dword [esi + 0x5c]
shr eax, 8
mov dword [esp + 0x80], eax
call fcn.0066a3f0
mov dword [esp + 0x14], eax
mov eax, ebx
fild dword [esp + 0x14]
fsubr qword [ebx + 0x310]
fstp qword [esp + 0x18]
call fcn.004a9d50
sub edi, dword [esp + 0x70]
sub edi, eax
xor eax, eax
test dword [ebx + 0x2a0], 0xfffffffe
mov dword [esp + 0x4c], edi
jbe 0x4aa565
jmp 0x4aa540
mov ecx, dword [ebx + 0x29c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebx + 0x294]
mov word [ecx + edx*8 + 2], 0xfff
mov edx, dword [ebx + 0x2a0]
add eax, 1
shr edx, 1
cmp eax, edx
jb 0x4aa540
cmp byte [0x6fa0c6], 0
je 0x4aa57d
mov eax, ebx
call fcn.004a9d50
mov edi, eax
mov dword [esp + 0x2c], edi
jmp 0x4aa589
mov dword [esp + 0x2c], 0
mov edi, dword [esp + 0x2c]
lea esi, [esp + 0x68]
call fcn.00495ae0
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 0x298]
shr eax, 1
cmp esi, eax
mov edx, esi
mov dword [esp + 0x54], edx
jae 0x4aa7c8
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
mov dword [esp + 0x68], eax
jmp 0x4aa5cc
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x328]
test ecx, ecx
jne 0x4aa5e0
mov ecx, dword [ebx + 0x294]
movzx ecx, word [ecx + edx*8]
fld qword [0x6c0d50]
mov dword [esp + 0x30], ecx
fld qword [esp + 0x18]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4aa63f
cmp edx, esi
jne 0x4aa63f
mov edx, dword [esp + 0x10]
fild dword [esp + 0x10]
test edx, edx
jge 0x4aa60f
fadd qword [0x6c0c98]
fild dword [esp + 0x30]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmulp st(2)
or eax, 0xc00
mov dword [esp + 0x30], eax
fsubrp st(1)
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov eax, dword [esp + 0x30]
fldcw word [esp + 0x10]
mov dword [esp + 0x10], eax
jmp 0x4aa641
fstp st(0)
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x4c]
add ecx, edx
add eax, edi
xor esi, esi
mov esi, edx
mov edx, edi
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x90], eax
add eax, edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x88], edi
add edi, edx
mov dword [esp + 0x94], ecx
add ecx, eax
lea edx, [esp + 0x88]
mov dword [esp + 0x8c], esi
add esi, eax
mov eax, dword [ebx + 0x294]
mov dword [esp + 0x64], ecx
mov cx, word [esp + 0x10]
push edx
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x58]
push ebx
mov dword [esp + 0x64], esi
mov word [eax + edi*8 + 2], cx
call fcn.004aa1f0
test eax, eax
je 0x4aa753
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x3c]
cmp ecx, edi
mov edx, dword [esp + 0x64]
mov dword [eax + 0x1c], esi
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 0x18], ecx
mov dword [esp + 0x98], ecx
jge 0x4aa6f5
mov dword [esp + 0x98], edi
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x9c], ecx
jge 0x4aa709
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x44]
cmp esi, ecx
jle 0x4aa713
mov esi, ecx
mov ecx, dword [esp + 0x48]
cmp edx, ecx
jle 0x4aa71d
mov edx, ecx
mov edi, dword [esp + 0x98]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [esp + 0xac]
mov dword [ecx + 4], edi
mov dword [ecx + 8], esi
push eax
mov eax, dword [esp + 0x94]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 0x70]
push eax
push edx
call fcn.0047b120
jmp 0x4aa78f
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x60]
mov edi, dword [eax + 0x70]
push 0x3f000000
lea ebx, [esp + 0x6c]
call fcn.0047c250
mov ebx, dword [esp + 0x84]
mov ecx, dword [esp + 0x94]
sub ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x10]
add eax, ecx
cmp eax, dword [esp + 0x68]
mov dword [esp + 0x10], eax
jg 0x4aa7c8
mov eax, dword [esp + 0x54]
mov ecx, dword [ebx + 0x298]
add eax, 1
shr ecx, 1
cmp eax, ecx
mov dword [esp + 0x54], eax
jb 0x4aa5c0
mov ecx, dword [ebx + 0x2a0]
shr ecx, 1
jne 0x4aa805
cmp dword [0x6fc274], 0
je 0x4aa7f6
cmp dword [0x6fc270], 0
je 0x4aa7f6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6fc270], eax
je 0x4aabf2
mov dword [0x6fc270], 0
jmp 0x4aac0a
xor edi, edi
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], eax
jbe 0x4aaa07
lea esp, [esp]
mov ecx, dword [ebx + 0x29c]
mov esi, dword [ecx + eax*4]
mov edx, esi
test edx, edx
mov dword [esp + 0x68], edx
fild dword [esp + 0x68]
jge 0x4aa83d
fadd qword [0x6c0c98]
test eax, eax
mov dword [esp + 0x68], eax
fild dword [esp + 0x68]
jge 0x4aa84f
fadd qword [0x6c0c98]
fadd qword [ebx + 0x310]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x4aaa07
mov eax, dword [ebx + 0x328]
cmp eax, edi
je 0x4aa872
mov dword [esp + 0x14], eax
jmp 0x4aa880
mov eax, dword [ebx + 0x294]
movzx ecx, word [eax + esi*8]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
push ebx
mov edi, esi
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
call fcn.004aa1f0
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x34]
lea edi, [ecx + edx]
mov edx, dword [ebx + 0x294]
add edi, dword [esp + 0x74]
mov word [edx + esi*8 + 2], cx
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x60], edx
mov esi, dword [esp + 0x34]
add ecx, edx
mov edx, dword [esp + 0x74]
add edx, esi
test eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], edx
je 0x4aa9ea
mov esi, dword [esp + 0x60]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x3c]
cmp ecx, eax
mov ebx, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
jge 0x4aa91d
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
cmp edx, eax
jge 0x4aa929
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
cmp esi, eax
jle 0x4aa935
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
cmp ebx, eax
jle 0x4aa941
mov dword [esp + 0x24], eax
push 0
push 0
xor ecx, ecx
lea esi, [esp + 0xb0]
call fcn.00479300
mov eax, dword [esp + 0x68]
mov ebx, esi
call fcn.00479730
or ecx, 0xffffffff
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
or edx, ecx
mov dword [eax + 4], edx
or esi, ecx
or ebx, ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
lea eax, [esp + 0xb8]
push eax
mov ebx, 0x80
call fcn.00479bd0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x90]
imul ecx, ecx, 0xdc
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x60]
lea eax, [esp + 0xb8]
push eax
mov eax, dword [edx + 0x70]
shr ecx, 8
push ecx
push eax
call fcn.0047b120
sub edi, dword [esp + 0x5c]
lea eax, [esp + 0xa8]
add dword [esp + 0x34], edi
call fcn.00479430
mov ebx, dword [esp + 0x84]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x2a0]
add eax, 1
shr ecx, 1
xor edi, edi
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x4aa820
mov eax, dword [ebx + 0x2a0]
mov esi, dword [esp + 0x7c]
sub esi, dword [esp + 0x74]
shr eax, 1
sub eax, 1
mov dword [esp + 0x10], eax
je 0x4aabd4
jmp 0x4aaa36
mov eax, dword [esp + 0x10]
xor edi, edi
mov edx, dword [ebx + 0x29c]
mov eax, dword [edx + eax*4]
mov ecx, dword [ebx + 0x294]
cmp word [ecx + eax*8 + 2], 0xfff
lea ecx, [ecx + eax*8]
mov dword [esp + 0x68], eax
jne 0x4aabd4
mov edx, dword [ebx + 0x328]
cmp edx, edi
jne 0x4aaa66
movzx edx, word [ecx]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
push ebx
mov edi, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], edx
call fcn.004aa1f0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [ebx + 0x294]
lea eax, [eax + ecx*8 + 2]
movzx ecx, word [eax]
sub esi, edx
cmp ecx, esi
mov dword [esp + 0x34], esi
jl 0x4aabd2
mov ecx, dword [esp + 0x4c]
mov word [eax], si
mov eax, dword [esp + 0x70]
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x74]
add edx, ecx
test edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
je 0x4aabc7
mov ebx, dword [esp + 0x2c]
add dword [esp + 0x20], ebx
add ecx, esi
add edx, esi
mov esi, dword [esp + 0x3c]
add eax, ebx
cmp eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jge 0x4aab03
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x40]
cmp ecx, eax
jge 0x4aab0f
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x20], eax
jle 0x4aab1d
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
cmp edx, eax
jle 0x4aab29
mov dword [esp + 0x24], eax
push 0
push 0
xor ecx, ecx
lea esi, [esp + 0xb0]
call fcn.00479300
mov eax, edi
mov ebx, esi
call fcn.00479730
or ecx, 0xffffffff
sub esp, 0x10
mov eax, esp
or edx, ecx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, ebx
or esi, ecx
or edi, ecx
mov dword [eax + 8], esi
push edx
mov ebx, 0x100
mov dword [eax + 0xc], edi
call fcn.00479bd0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x90]
imul ecx, ecx, 0xdc
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x60]
lea eax, [esp + 0xb8]
push eax
mov eax, dword [edx + 0x70]
shr ecx, 8
push ecx
push eax
call fcn.0047b120
lea eax, [esp + 0xa8]
call fcn.00479430
mov ebx, dword [esp + 0x84]
mov esi, dword [esp + 0x34]
sub dword [esp + 0x10], 1
jne 0x4aaa30
xor edi, edi
cmp dword [0x6fc274], edi
je 0x4aac04
cmp dword [0x6fc270], edi
je 0x4aac04
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6fc270], eax
jne 0x4aac04
sub dword [0x6fc274], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [0x6fc270], edi
cmp byte [0x6fc25f], 0
je 0x4aac29
push 0x6fc278
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x6fc258]
mov eax, dword [edx + 0x18]
mov ecx, 0x6fc258
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4