Function at 0x49ff32
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 0x4a024f
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.004b5c44
xor eax, eax
cmp dword [esp + 0x20], eax
je 0x4a0282
cmp dword [esp + 0x28], 0
jne 0x4a0286
lea eax, [edi + 1]
lea ecx, [esp + 0x44]
mov edx, edi
mov dword [esp + 0x40], eax
call fcn.00479852
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.004b5c44
cmp dword [esp + 0x80], 0
je 0x4a01d4
mov ecx, dword [esp + 0x84]
cmp ecx, 0x7ffffffe
ja 0x4a01e5
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.004799cf
pop ecx
mov ecx, dword [eax + 4]
add ecx, 2
cmp ecx, 0x7ffffffe
ja 0x4a01f7
test ebx, ebx
mov dword [eax + 4], ecx
je 0x4a0141
mov ecx, esi
call fcn.004776f7
mov edi, eax
add eax, 8
mov dword [esp + 0x14], edx
mov dword [esp + 8], eax
push esi
push ebx
push eax
call fcn.005669c0
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.004799ea
pop ecx
mov edx, dword [esp + 8]
mov ecx, eax
push edi
call fcn.004784ae
pop ecx
test al, al
jne 0x4a0200
mov edx, ebx
mov ecx, esi
push dword [esp]
call fcn.00479a07
pop ecx
mov edx, dword [esp + 0xc]
lock inc dword [edx]
jle 0x4a02f2
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ecx, eax
push ebx
push esi
call fcn.00478779
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 0x5aeb34
push dword [esp + 4]
call fcn.00404e36
pop ecx
pop edx
mov edx, dword [esp + 0x20]
mov ecx, eax
push esi
call fcn.004777cb
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 0x4a0177
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
push 0x5aeb44
push dword [esp + 4]
call fcn.00404e36
pop ecx
pop edx
sub esp, 4
mov ecx, eax
xor edx, edx
call fcn.004777cb
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 0x4a02b9
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 0x4a02be
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], esi
push 0x5aeb64
push edi
call fcn.00404e36
pop ecx
pop edx
mov eax, dword [eax + 8]
cmp esi, eax
mov dword [esp + 0x10], eax
je 0x4a0002
jmp 0x4a02d2
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
jmp 0x49ff7e
mov eax, dword [esp + 4]
mov dword [eax], 1
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
jmp 0x4a023e
mov edi, dword [esp + 0x18]
xor ecx, ecx
inc ecx
jmp 0x4a0229
mov ebx, dword [esp + 0x14]
mov ecx, ebx
call fcn.004fa895
mov edi, eax
mov esi, edx
push ebx
push dword [esp + 0xc]
push eax
call fcn.005669c0
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00471766
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.004715fe
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.0047976c
pop eax
mov eax, dword [esi]
cmp eax, 5
jne 0x4a0294
lea ecx, [esp + 0x44]
call fcn.004782d9
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
mov dword [ecx], 5
jmp 0x4a0247
push 2
jmp 0x4a0288
push 3
pop ecx
mov eax, dword [esp + 4]
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x4a023e
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 0x4a023e
and dword [esp + 0x10], 0
and dword [esp + 0x20], 0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push 0x5aeb54
jmp 0x4a02e4
and dword [esp + 0x20], 0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push 0x5aeb74
lea eax, [esp + 0x24]
push eax
call fcn.0057916b
pop eax
pop ecx
ud2
ud2