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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov dword [esp + 4], ecx
push 4
pop eax
lea ecx, [esp + 0x44]
xor edi, edi
mov dword [esp + 0x3c], edx
mov dword [ecx], eax
and dword [ecx + 4], 0
and dword [ecx + 8], 0
mov dword [ecx + 0xc], 8
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
mov dword [ecx + 0x18], eax
and dword [ecx + 0x1c], 0
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
lea ecx, [esp + 0x20]
cmp edi, 1
je 0x4a2afb
mov eax, dword [ebp + 8]
mov dword [esp + 0x6c], edx
lea edx, [esp + 0x6c]
mov dword [esp + 0x70], eax
and dword [esp + 0x74], 0
mov dword [esp + 0x78], 1
and dword [esp + 0x7c], 0
call fcn.004b850d
xor eax, eax
cmp dword [esp + 0x20], eax
je 0x4a2b2e
cmp dword [esp + 0x28], 0
jne 0x4a2b32
lea eax, [edi + 1]
lea ecx, [esp + 0x44]
mov edx, edi
mov dword [esp + 0x40], eax
call fcn.0047c17a
mov eax, dword [esp + 0x7c]
movsd xmm0, qword [esp + 0x6c]
movsd xmm1, qword [esp + 0x74]
mov dword [esp], edi
mov dword [esp + 0xa0], eax
movsd qword [esp + 0x98], xmm1
movsd qword [esp + 0x90], xmm0
lea ecx, [esp + 0x80]
lea edx, [esp + 0x90]
call fcn.004b850d
cmp dword [esp + 0x80], 0
je 0x4a2a80
mov ecx, dword [esp + 0x84]
cmp ecx, 0x7ffffffe
ja 0x4a2a91
mov dword [esp + 0x18], ecx
mov eax, edi
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x44]
mov edx, edi
push eax
call fcn.0047c2f7
pop ecx
mov ecx, dword [eax + 4]
add ecx, 2
cmp ecx, 0x7ffffffe
ja 0x4a2aa3
test ebx, ebx
mov dword [eax + 4], ecx
je 0x4a29ed
mov ecx, esi
call fcn.00479e77
mov edi, eax
add eax, 8
mov dword [esp + 0x14], edx
mov dword [esp + 8], eax
push esi
push ebx
push eax
call fcn.00570db0
add esp, 0xc
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xc], edi
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x24], edi
mov ecx, esi
mov edx, ebx
push dword [esp]
call fcn.0047c312
pop ecx
mov edx, dword [esp + 8]
mov ecx, eax
push edi
call fcn.0047add3
pop ecx
test al, al
jne 0x4a2aac
mov edx, ebx
mov ecx, esi
push dword [esp]
call fcn.0047c32f
pop ecx
mov edx, dword [esp + 0xc]
lock inc dword [edx]
jle 0x4a2b9e
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ecx, eax
push ebx
push esi
call fcn.0047b09e
pop eax
pop ecx
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
push 0x5bc994
push dword [esp + 4]
call fcn.00404f0a
pop ecx
pop edx
mov edx, dword [esp + 0x20]
mov ecx, eax
push esi
call fcn.00479f2a
pop eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea eax, [eax + ecx*2 + 0x14]
mov dword [esp + 0x68], eax
jmp 0x4a2a23
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
push 0x5bc9a4
push dword [esp + 4]
call fcn.00404f0a
pop ecx
pop edx
sub esp, 4
mov ecx, eax
xor edx, edx
call fcn.00479f2a
pop eax
add dword [esp + 0x68], 8
mov ebx, dword [esp + 0x18]
mov eax, dword [esp]
lea esi, [ebx + 1]
mov dword [esp + 0x1c], esi
cmp edi, eax
jbe 0x4a2b65
mov edi, eax
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + edi*8 + 4]
sub ecx, dword [eax + edi*8]
shr ecx, 1
lea eax, [ecx + 1]
cmp ebx, ecx
mov dword [esp + 0x10], eax
jne 0x4a2b6a
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], esi
push 0x5bc9c4
push edi
call fcn.00404f0a
pop ecx
pop edx
mov eax, dword [eax + 8]
cmp esi, eax
mov dword [esp + 0x10], eax
je 0x4a28ae
jmp 0x4a2b7e
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
jmp 0x4a282a
mov eax, dword [esp + 4]
mov dword [eax], 1
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
jmp 0x4a2aea
mov edi, dword [esp + 0x18]
xor ecx, ecx
inc ecx
jmp 0x4a2ad5
mov ebx, dword [esp + 0x14]
mov ecx, ebx
call fcn.004fda03
mov edi, eax
mov esi, edx
push ebx
push dword [esp + 0xc]
push eax
call fcn.00570db0
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00473464
push 4
pop ecx
mov eax, dword [esp + 4]
mov edx, dword [esp]
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], ebx
mov dword [eax], ecx
lea ecx, [esp + 0x44]
call fcn.004732fc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0x44]
lea esi, [esp + 0x20]
mov ecx, esi
push dword [esp + 0x4c]
call fcn.0047c094
pop eax
mov eax, dword [esi]
cmp eax, 5
jne 0x4a2b40
lea ecx, [esp + 0x44]
call fcn.0047ac13
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
mov dword [ecx], 5
jmp 0x4a2af3
push 2
jmp 0x4a2b34
push 3
pop ecx
mov eax, dword [esp + 4]
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x4a2aea
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 4]
movsd xmm0, qword [esp + 0x24]
movsd xmm1, qword [esp + 0x2c]
mov dword [edx + 0x14], ecx
movsd qword [edx + 0xc], xmm1
movsd qword [edx + 4], xmm0
mov dword [edx], eax
jmp 0x4a2aea
and dword [esp + 0x10], 0
and dword [esp + 0x20], 0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push 0x5bc9b4
jmp 0x4a2b90
and dword [esp + 0x20], 0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push 0x5bc9d4
lea eax, [esp + 0x24]
push eax
call fcn.0058353c
pop eax
pop ecx
ud2
ud2