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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a0580
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x49fed8]
call fcn.00622b40
mov dword [ebp - 0x20], eax
mov edx, 0x2012
mov eax, dword [ebp - 0x20]
call fcn.00622a64
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov dword [eax + 0x1c0], edx
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0x1cc]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov eax, dword [ebp - 8]
call fcn.00625850
test al, al
je 0x4a014a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1ac]
mov dl, 1
call fcn.00637960
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1a4]
mov edx, 2
call fcn.006362a4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1a8]
mov dl, 1
call fcn.00637610
jmp 0x4a0184
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1a0]
mov dl, 1
call fcn.00637960
mov edx, dword [ebp - 4]
movzx edx, byte [edx + 4]
dec edx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1a4]
call fcn.006362a4
mov edx, dword [ebp - 4]
mov dl, byte [edx + 5]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1a8]
call fcn.00637610
call fcn.0064d744
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x18]
dec esi
cmp esi, 0
jl 0x4a01b4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
mov edx, dword [eax + 0x14]
mov ecx, esi
mov eax, dword [ebp - 0xc]
call fcn.0064ed68
dec esi
cmp esi, 0xffffffff
jne 0x4a0198
mov eax, dword [ebp - 0xc]
call fcn.00650684
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1b4]
mov eax, dword [eax + 0x120]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
call fcn.0064ef14
mov esi, 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
dec eax
test eax, eax
jl 0x4a024e
inc eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
lea edi, [eax + 0x80]
mov eax, dword [eax + 0xc]
add eax, 0xffffffed
sub eax, 9
jb 0x4a0248
sub eax, 0x3f
je 0x4a0248
movsx eax, byte [edi + 0x18]
test ax, ax
jl 0x4a022e
movsx eax, byte [edi + 0x18]
cmp ax, 9
jl 0x4a0232
xor eax, eax
jmp 0x4a0234
mov al, 1
and eax, 0x7f
cmp esi, eax
jne 0x4a0248
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp - 0x24]
call fcn.0064ed44
inc ebx
dec dword [ebp - 0x28]
jne 0x4a01ec
dec esi
cmp esi, 0xffffffff
jne 0x4a01db
mov eax, dword [ebp - 0x24]
call fcn.0064ef2c
mov eax, dword [ebp - 0xc]
call fcn.004028c0
call fcn.0064dfa0
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x1c8], eax
mov eax, 0x32
call fcn.006228d8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1a4]
mov eax, dword [eax + 0x34]
mov edx, dword [0x669ba4]
add eax, dword [edx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1b4]
mov edx, dword [ebp - 0x18]
call fcn.0063801c
mov eax, 0x14
call fcn.006228d8
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x1b8]
mov edx, dword [edx + 0x2c]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ecx + 0x1b4]
sub edx, dword [ebx + 0x2c]
sub edx, eax
mov eax, ebx
call fcn.0063f9c0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1b4]
mov eax, dword [eax + 0x120]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1b4]
mov eax, dword [eax + 0x34]
cdq
idiv dword [ebp - 0x18]
call fcn.00652c70
pop edx
call fcn.00652c54
dec eax
test eax, eax
jl 0x4a03db
inc eax
mov dword [ebp - 0x28], eax
xor esi, esi
mov edx, dword [0x633e78]
mov eax, dword [ebp - 0x20]
call fcn.00641710
mov dword [ebp - 0x10], eax
mov dl, 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 0x120]
mov eax, edi
call fcn.0064ef14
xor edx, edx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov ebx, 1
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.0065539c
mov edx, dword [ebp - 0x2c]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x2c]
inc ebx
cmp ebx, 0xa
jne 0x4a034a
mov eax, edi
call fcn.0064ef2c
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1a4]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1b4]
mov ecx, dword [eax + 0x2c]
mov eax, esi
imul dword [ebp - 0x18]
add ecx, eax
mov eax, dword [0x669ba4]
add ecx, dword [eax]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1b0]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x144], edx
mov dword [eax + 0x140], fcn.004a067c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c8]
mov edx, dword [ebp - 0x10]
call fcn.0064e1f0
inc esi
dec dword [ebp - 0x28]
jne 0x4a0311
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
call fcn.005e0f3c
mov edx, eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1bc]
mov eax, dword [eax + 0x120]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1bc]
call fcn.0063fddc
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x198], 1
xor edx, edx
mov eax, dword [ebp - 0x20]
call fcn.004a067c
mov eax, dword [ebp - 0x20]
call fcn.0063c5d0
dec eax
jne 0x4a053e
mov eax, dword [ebp - 4]
call fcn.00403880
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1a0]
cmp byte [eax + 0x124], 0
je 0x4a047b
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1a4]
call fcn.00636288
inc eax
mov edx, dword [ebp - 4]
mov byte [edx + 4], al
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1a8]
call fcn.00637604
mov edx, dword [ebp - 4]
mov byte [edx + 5], al
jmp 0x4a0514
mov eax, dword [ebp - 4]
mov byte [eax + 5], 0
mov edi, 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1cc]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x4a050a
inc eax
mov dword [ebp - 0x28], eax
xor esi, esi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1cc]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax + esi*4]
cmp edi, ebx
jne 0x4a0504
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4a04c9
mov eax, dword [ebp - 4]
mov edx, 0x4a0594
call fcn.00403ac4
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 4]
push dword [eax]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
push dword [eax + 0x10]
push 0x4a0594
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.0065539c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
call fcn.00403a34
push dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, 4
call fcn.00403b88
inc esi
dec dword [ebp - 0x28]
jne 0x4a049e
inc edi
cmp edi, 0xa
jne 0x4a0487
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1bc]
call fcn.0063fd30
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.004038bc
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00653348
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c8]
call fcn.0064e5c0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1cc]
call fcn.0064e5c0
mov eax, dword [ebp - 0x20]
call fcn.004028c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0587
lea eax, [ebp - 0x30]
call fcn.00403880
lea eax, [ebp - 0x2c]
call fcn.00403274
ret