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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62e3db
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x652018]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov eax, dword [0x652018]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x2c], 0
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x30], 0
and eax, 7
je 0x4ba4d7
cmp eax, 1
jne 0x4ba8a9
mov eax, dword [ebx + 0x54]
inc dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x5c]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x68]
push 0
mov dword [esp + 0x6c], ecx
mov ecx, ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x6c]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x78], eax
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
call fcn.004bfd8e
mov eax, dword [edi + 0x5c]
and eax, 7
mov dword [esp + 0x14], eax
jne 0x4ba577
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x4ba577
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004c126e
mov eax, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x14], esi
test eax, eax
jne 0x4ba5c0
mov ecx, dword [edi + 0x50]
call 0x3dc91e
mov ecx, eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x38]
cmp ecx, dword [eax + 0x1284]
je 0x4ba5b6
mov ecx, dword [edi + 0x50]
call 0x3dc91e
mov ecx, eax
mov esi, 0x40
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x38]
cmp ecx, dword [eax + 0x12a8]
jne 0x4ba5bb
mov esi, 0x20
or esi, 0x10
jmp 0x4ba5cb
test byte [edi + 1], 8
je 0x4ba5cf
mov esi, 0x10
mov dword [esp + 0x14], esi
mov eax, dword [edi + 0x5c]
shr eax, 6
test al, 1
je 0x4ba5e0
or esi, 0x20
mov dword [esp + 0x14], esi
mov ecx, edi
call 0x3da59e
dec eax
cmp eax, 5
ja 0x4ba60f
jmp dword [eax*4 + 0x536454]
cmp byte [edi], 0x14
jne 0x4ba7b1
cmp dword [edi + 0x70], 0
je 0x4ba7b1
mov eax, dword [ebx + 0x54]
or esi, 0x200
inc dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x5c]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov edi, dword [edi + 0x70]
push 0
mov dword [esp + 0x40], ecx
mov ecx, ebx
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], edi
call fcn.004bf37e
push ecx
lea ecx, [esp + 0x78]
call fcn.0041538e
mov dword [esp + 0x1b8], 0
xor esi, esi
cmp dword [ebx + 0x6c], esi
jbe 0x4ba702
mov edi, dword [0x660144]
lea ecx, [ecx]
mov eax, dword [ebx + 0x68]
movzx eax, byte [esi + eax]
push eax
push 0x427f78
lea eax, [esp + 0x1a8]
push 3
push eax
call 0x3b47ae
add esp, 0x10
test eax, eax
jns 0x4ba6ca
push 0
push 0
push 0
push eax
call edi
lea ecx, [esp + 0x1a0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ba6d4
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x7c]
call fcn.00415b1e
inc esi
cmp esi, dword [ebx + 0x6c]
jb 0x4ba69e
mov edi, dword [esp + 0x50]
test byte [edi + 0x79], 4
je 0x4ba723
test byte [edi + 1], 8
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
je 0x4ba71b
mov eax, dword [eax + 0x3e0]
jmp 0x4ba726
mov eax, dword [eax + 0x3dc]
jmp 0x4ba726
mov eax, dword [edi + 4]
push dword [esp + 0x20]
mov ecx, dword [ebx]
push 0x4258dc
push dword [esp + 0x98]
mov ecx, dword [ecx + 0xc]
push 0x4258dc
push eax
push 0x427f80
call fcn.004146ae
mov dword [esp + 0x20], eax
lea ecx, [ebx + 0x48]
lea eax, [esp + 0x34]
push eax
call 0x3bcfce
mov ecx, dword [esp + 0x58]
mov dword [ebx + 0x68], ecx
mov ecx, dword [esp + 0x5c]
mov dword [ebx + 0x6c], ecx
mov dword [esp + 0x1b8], 0xffffffff
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x74], 0x424634
mov eax, dword [ecx + 4]
mov dword [esp + eax + 0x78], 0x42461c
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x120]
mov dword [esp + ecx + 0x74], eax
lea ecx, [esp + 0x74]
call fcn.0041555e
mov dword [esp + 0x198], 0x41b854
mov ecx, dword [esp + 0x24]
mov esi, dword [ebx + 0x6c]
mov edi, dword [ebx + 0x68]
call 0x3e9c7e
mov ecx, dword [ebx + 4]
push eax
call fcn.004e66ce
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
push ecx
push dword [esp + 0x34]
mov ecx, dword [ebx + 0x10]
push dword [esp + 0x34]
push dword [esp + 0x24]
push esi
push edi
push dword [esp + 0x2c]
push dword [esp + 0x3c]
push eax
push ecx
call dword [edx + 0x9c]
mov edi, dword [0x660144]
test eax, eax
jns 0x4ba807
push 0
push 0
push 0
push eax
call edi
lea eax, [esp + 0x60]
push eax
lea ecx, [ebx + 0x48]
call 0x3bcfce
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x24]
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x6c], eax
mov cl, byte [esi]
movzx eax, cl
mov dword [esp + 0x18], 0
test byte [eax + eax*2 + 0x405210], 8
je 0x4ba84d
mov ecx, esi
call 0x3c4d6e
mov ecx, eax
call 0x3da6ae
jmp 0x4ba860
cmp cl, 0x2a
je 0x4ba85e
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4ba85e
mov eax, dword [eax + 0xc]
jmp 0x4ba860
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call 0x3f00de
test al, al
je 0x4ba897
push dword [esp + 0x18]
mov eax, dword [ebx + 0x10]
push dword [esp + 0x20]
push dword [esp + 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
test eax, eax
jns 0x4ba897
push 0
push 0
push 0
push eax
call edi
mov ecx, dword [ebx + 4]
cmp dword [ecx], 0
jne 0x4ba8a9
push dword [esp + 0x28]
push esi
call fcn.004e68ee
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call 0x59f18f
mov esp, ebp
pop ebp
ret 4