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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x4aa150
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4aa5d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 0x14]
lea edi, [eax + 0x88]
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 0x48]
mov al, byte [edi + 7]
sub al, 2
jb 0x4aa199
dec al
je 0x4aa247
dec al
je 0x4aa1d3
sub al, 2
je 0x4aa20d
jmp 0x4aa2be
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xf
lea edx, [ebp - 0x28]
mov eax, dword [0x4b4ae8]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0040a8a4
mov edx, dword [ebp - 0x20]
lea eax, [edi + 0x18]
call fcn.00404920
jmp 0x4aa33a
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xf
lea edx, [ebp - 0x28]
mov eax, dword [0x4b48c8]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0040a8a4
mov edx, dword [ebp - 0x30]
lea eax, [edi + 0x18]
call fcn.00404920
jmp 0x4aa33a
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xf
lea edx, [ebp - 0x28]
mov eax, dword [0x4b490c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0040a8a4
mov edx, dword [ebp - 0x38]
lea eax, [edi + 0x18]
call fcn.00404920
jmp 0x4aa33a
cmp byte [edi + 0x15], 0
je 0x4aa287
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xf
lea edx, [ebp - 0x28]
mov eax, dword [0x4b4b20]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0040a8a4
mov edx, dword [ebp - 0x40]
lea eax, [edi + 0x18]
call fcn.00404920
jmp 0x4aa33a
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xf
lea edx, [ebp - 0x28]
mov eax, dword [0x4b4678]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0040a8a4
mov edx, dword [ebp - 0x48]
lea eax, [edi + 0x18]
call fcn.00404920
jmp 0x4aa33a
cmp dword [edi + 0x4c], 0
jne 0x4aa2cc
cmp dword [edi + 0x48], 0
jbe 0x4aa2f5
jmp 0x4aa2ce
jle 0x4aa2f5
push 0
push 0x64
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
call fcn.004053d8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
fild qword [ebp - 0x28]
fild qword [edi + 0x48]
fdivp st(1)
call fcn.00402b04
mov dword [ebp - 0x1c], eax
jmp 0x4aa2fa
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xf
lea edx, [ebp - 0x60]
mov ecx, 1
mov eax, 0x4aa5e8
call fcn.0040a8a4
mov edx, dword [ebp - 0x50]
lea eax, [edi + 0x18]
call fcn.00404920
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x48]
cmp dword [eax + 0x30], 0
je 0x4aa54f
mov eax, dword [eax + 0x10]
cmp dword [eax + 8], 0
jle 0x4aa54f
push ebp
call fcn.004aa0a0
pop ecx
lea eax, [edi + 0x1c]
mov edx, dword [esi + 0x34]
mov edx, dword [edx + 0x10]
call fcn.00404920
lea eax, [edi + 0x20]
mov edx, dword [esi + 0x34]
mov edx, dword [edx + 0x14]
call fcn.00404920
lea eax, [ebp - 0x68]
push eax
mov eax, dword [esi + 0x18]
inc eax
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
mov eax, dword [esi + 0x10]
push dword [eax + 0x3c]
push dword [eax + 0x38]
lea edx, [ebp - 0x84]
mov eax, dword [0x4b49b8]
mov eax, dword [eax]
mov al, byte [eax + 0x3d]
call fcn.004b17b0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0xf
lea edx, [ebp - 0x80]
mov eax, dword [0x4b4798]
mov eax, dword [eax]
mov ecx, 2
call fcn.0040a8a4
mov edx, dword [ebp - 0x68]
lea eax, [edi + 0x28]
call fcn.00404920
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0xf
mov eax, dword [esi + 0x30]
push dword [eax + 0x1c]
push dword [eax + 0x18]
lea edx, [ebp - 0x8c]
mov eax, dword [0x4b49b8]
mov eax, dword [eax]
mov al, byte [eax + 0x3d]
call fcn.004b17b0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xf
lea edx, [ebp - 0x60]
mov eax, dword [0x4b4600]
mov eax, dword [eax]
mov ecx, 1
call fcn.0040a8a4
mov edx, dword [ebp - 0x88]
lea eax, [edi + 0x24]
call fcn.00404920
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
add eax, dword [esi + 0x40]
adc edx, dword [esi + 0x44]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], edx
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0x18]
mov dword [edi + 0x38], edx
mov edx, dword [eax + 0x1c]
mov dword [edi + 0x3c], edx
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
add eax, dword [esi + 0x28]
adc edx, dword [esi + 0x2c]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], edx
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 0x38]
mov dword [edi + 0x48], edx
mov edx, dword [eax + 0x3c]
mov dword [edi + 0x4c], edx
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x14]
fild dword [eax + 0x78]
fdiv dword [0x4aa5fc]
fstp xword [ebp - 0x9c]
wait
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 3
lea edx, [ebp - 0x28]
mov eax, dword [0x4b4530]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0040a8a4
mov edx, dword [ebp - 0x90]
lea eax, [edi + 0x2c]
call fcn.00404920
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 0x4aa608
call fcn.0040c3a8
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [0x4b481c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0040a8a4
mov edx, dword [ebp - 0xa0]
lea eax, [edi + 0x50]
call fcn.00404920
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
mov edx, 0x4aa608
call fcn.0040c3a8
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
mov eax, dword [0x4b481c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0040a8a4
mov edx, dword [ebp - 0xa4]
lea eax, [edi + 0x54]
call fcn.00404920
mov eax, dword [ebp - 0x14]
push eax
push fcn.004aa710
mov eax, dword [ebp - 0x14]
call fcn.0042355c
cmp byte [edi + 6], 0
je 0x4aa573
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x8f], 6
xor bl, 1
test bl, bl
jne 0x4aa16e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa5da
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.004048fc
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.004048fc
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004048fc
lea eax, [ebp - 0x50]
mov edx, 0xa
call fcn.004048fc
lea eax, [ebp - 0x20]
call fcn.004048e4
lea eax, [ebp - 0x18]
call fcn.004041ac
ret