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

Disassembly:
push 0xffffffffffffffff
push 0x551b88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57f7c4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x4ba9ee
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4ba9e2
cmp dword [eax + 0x104], 4
jne 0x4ba9c0
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + ecx*8 + 0x18]
mov ecx, ebx
mov edi, ebp
call fcn.004baf40
test al, al
je 0x4ba9b4
mov edx, dword [edx + 0xdc]
mov dword [esp + 0x3c], edx
jmp 0x4ba9ca
mov eax, dword [ebx + 0xdc]
mov dword [esp + 0x3c], eax
jmp 0x4ba9ca
mov ecx, dword [ebx + 0xdc]
mov dword [esp + 0x3c], ecx
mov edx, dword [ebp + 0xd4]
cmp byte [edx + 0x2c], 0
jne 0x4ba9f6
mov eax, dword [ebx + 0xdc]
mov dword [esp + 0x3c], eax
jmp 0x4ba9f6
mov ecx, dword [ebx + 0xdc]
mov dword [esp + 0x3c], ecx
jmp 0x4ba9f6
mov dword [esp + 0x3c], 0
mov edx, dword [ebp + 0xd4]
cmp byte [edx + 0x2c], 0
je 0x4baa86
mov eax, edx
movzx ecx, byte [eax + 0x2d]
movzx eax, byte [eax + 0x2c]
lea edx, [eax - 1]
cmp edx, 0xfe
ja 0x4baa86
lea edx, [ecx - 1]
cmp edx, 0xfe
ja 0x4baa86
shl eax, 8
add eax, ecx
imul eax, eax, 0xa8
cmp byte [eax + 0x589698], 0
je 0x4baa86
cmp byte [eax + 0x589699], 0
je 0x4baa86
lea ebx, [eax + 0x589674]
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4baa82
cmp byte [ebx + 0x9c], 0
je 0x4baac2
call fcn.0051bd66
cdq
mov ecx, 0x64
idiv ecx
movzx eax, word [ebx + 0x4c]
cmp edx, eax
jge 0x4baa82
mov ecx, dword [esp + 0x44]
push 0
push ecx
push ebx
mov ecx, dword [esp + 0x4c]
mov edx, ebp
call fcn.004baf80
mov ebx, dword [esp + 0x40]
mov esi, 1
jmp 0x4baa90
mov ecx, dword [ebp + 0xd4]
cmp word [ecx + esi*8 + 0xbc], 0
je 0x4babfa
cmp esi, 7
jge 0x4babb4
call fcn.0051bd66
cdq
mov ecx, 0x64
idiv ecx
mov eax, edx
jmp 0x4babc4
cmp dword [esp + 0x40], 0
je 0x4baa82
movzx ecx, byte [ebx + 0x25]
movzx eax, byte [ebx + 0x24]
call fcn.0041ba60
mov dword [esp + 0x14], eax
test eax, eax
je 0x4baa82
xor edx, edx
cmp dword [eax + 8], edx
mov dword [esp + 0x18], edx
jle 0x4baa82
lea esp, [esp]
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4bab34
xor esi, esi
cmp dword [ecx + 0x10], esi
jle 0x4bab4d
lea ebx, [ecx + 0x18]
mov edi, dword [ebx]
test edi, edi
je 0x4bab21
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x18]
movzx edx, word [eax + ecx*2]
push edx
call fcn.0048d3a0
test eax, eax
jne 0x4bab60
mov eax, dword [esp + 0x44]
inc esi
add ebx, 8
cmp esi, dword [eax + 0x10]
jl 0x4bab02
mov ebx, dword [esp + 0x1c]
jmp 0x4bab49
mov ecx, dword [eax + 0xc]
movzx edx, word [ecx + edx*2]
mov edi, dword [esp + 0x40]
push edx
call fcn.0048d3a0
test eax, eax
jne 0x4bab8a
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc edx
cmp edx, dword [eax + 8]
mov dword [esp + 0x18], edx
jl 0x4baaf0
jmp 0x4baa82
call fcn.0051bd66
cdq
mov ecx, 0x64
idiv ecx
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0x4c]
cmp edx, ecx
jge 0x4baa82
mov edx, dword [esp + 0x44]
push 0
push edx
push eax
jmp 0x4baa77
call fcn.0051bd66
cdq
mov ecx, 0x64
idiv ecx
movzx eax, word [ebx + 0x4c]
cmp edx, eax
jge 0x4babad
push 0
push 0
push ebx
mov ecx, edi
mov edx, ebp
call fcn.004baf80
mov ebx, edi
jmp 0x4baa86
push 0xf4240
lea eax, [ebp + 0x348]
call fcn.004bd3e0
mov ecx, dword [ebp + 0xd4]
cmp eax, dword [ecx + esi*8 + 0xc0]
jae 0x4babfa
movzx eax, word [ecx + esi*8 + 0xbc]
mov ecx, 0x1091878
call fcn.004d5e90
test eax, eax
je 0x4babfa
mov edx, dword [esp + 0x44]
push 0
push edx
push eax
mov ecx, ebx
mov edx, ebp
call fcn.004baf80
inc esi
cmp esi, 0xa
jl 0x4baa90
mov eax, dword [ebp + 0x8c]
mov ecx, dword [eax + 0x28]
cmp dword [ecx + 0x1a4], 5
jne 0x4baca6
mov eax, dword [ebp + 0xd4]
cmp word [eax + 0x28], 0
jne 0x4baca6
cmp word [eax + 0x2a], 0
jbe 0x4baca6
test ebx, ebx
je 0x4baeb8
mov esi, dword [ebx + 0x1810]
mov dword [esp + 0x40], esi
test esi, esi
je 0x4bac67
lea edi, [esi + 0x5cc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x1810], 0
jne 0x4bac67
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], 0
mov eax, dword [ebx + 0x1810]
test eax, eax
je 0x4bac8c
mov edx, dword [ebp + 0xd4]
movzx ecx, word [edx + 0x2a]
push ebx
push ecx
mov ebx, eax
call fcn.00432a40
test esi, esi
je 0x4baeb8
add esi, 0x5cc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4baeb8
mov eax, dword [ebp + 0xd4]
cmp word [eax + 0x28], 0
jbe 0x4bacda
movzx edx, word [eax + 0x22]
mov ebx, dword [ebp + 0x88]
push edx
call fcn.004d6670
test eax, eax
je 0x4bacda
mov ecx, dword [esp + 0x44]
push 1
push ecx
mov ecx, dword [esp + 0x48]
push eax
mov edx, ebp
call fcn.004baf80
call fcn.0051bd66
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0x1e
jge 0x4baeb8
mov eax, dword [ebp + 0xd4]
cmp word [eax + 0x2a], 0
movzx esi, word [eax + 0x28]
mov dword [esp + 0x18], esi
jbe 0x4bad1d
call fcn.0051bd66
mov edx, dword [ebp + 0xd4]
movzx ecx, word [edx + 0x2a]
cdq
idiv ecx
add esi, edx
mov dword [esp + 0x18], esi
test esi, esi
jle 0x4baeb8
cmp dword [ebp + 0x308], 0
jne 0x4bad3e
mov eax, dword [ebp + 0xd10]
test eax, eax
je 0x4bad4c
cmp byte [eax + 0x1c], 0
je 0x4bad4c
push esi
push 0
push 8
xor edi, edi
mov edx, ebp
call fcn.004b62c0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4bae0d
mov esi, dword [eax + 0x10]
fild dword [esp + 0x18]
mov dword [esp + 0x3c], esi
fidiv dword [esp + 0x3c]
call fcn.005250c0
mov ebx, eax
mov dword [esp + 0x1c], eax
test ebx, ebx
jg 0x4bad7f
mov ebx, 1
mov dword [esp + 0x1c], ebx
xor ebp, ebp
test esi, esi
jle 0x4baeb8
mov edi, dword [esp + 0x44]
add edi, 0x18
mov esi, dword [edi]
mov ecx, dword [esp + 0x40]
push 0x64
mov eax, esi
call fcn.0046ad40
test al, al
je 0x4badfb
mov ecx, dword [esi + 0x5950]
xor eax, eax
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x4badb9
mov eax, ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x594c]
cmp ecx, 1
je 0x4badda
cmp ecx, 2
jne 0x4badce
add eax, 0x14
jmp 0x4badd6
cmp ecx, 3
jne 0x4badda
add eax, 0x32
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x4badf1
fild dword [esp + 0x3c]
fdiv qword [0x573f48]
fimul dword [esp + 0x1c]
call fcn.005250c0
lea ecx, [eax + ebx]
mov edx, esi
call fcn.0046bba0
mov edx, dword [esp + 0x44]
inc ebp
add edi, 8
cmp ebp, dword [edx + 0x10]
jl 0x4bad90
jmp 0x4baeb8
mov eax, dword [0x587964]
lea esi, [eax + 0x84]
mov edi, eax
call fcn.004122a0
mov ebx, eax
test ebx, ebx
je 0x4baeb8
cmp dword [ebx + 0x14], 0
jne 0x4bae3c
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.004d2160
mov ecx, dword [esp + 0x3c]
xor eax, eax
lea esi, [esp + 0x20]
mov edi, ebp
mov dword [ebx + 0x30], 0
mov byte [ebx + 0x40], 0x1a
mov byte [ebx + 0x41], 0
mov byte [ebx + 0x42], 1
mov word [ebx + 0x44], ax
mov byte [ebx + 0x68], 0x44
mov dword [ebx + 0x70], ecx
call fcn.004a16a0
fld dword [eax]
fstp dword [ebx + 8]
mov esi, ebx
fld dword [eax + 4]
fstp dword [ebx + 0xc]
fld dword [eax + 8]
mov eax, dword [esp + 0x18]
fstp dword [ebx + 0x10]
mov byte [ebx + 0x78], 1
movzx edx, word [ebp + 0x2a4]
mov dword [ebx + 0x7c], edx
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x80], eax
call fcn.004d24c0
mov eax, ebx
mov ebx, dword [ebp + 0x8c]
push 2
call fcn.0041d9b0
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc