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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x58]
push ebx
push ebp
movsx ebp, al
mov eax, dword [0x595b14]
imul ecx, ebp, 0xd26
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x58]
push esi
movzx esi, al
add ecx, 0x5cff0a
mov byte [esp + 0xe], 1
mov eax, esi
mov byte [esp + 0xf], 1
push edi
mov dword [esp + 0x38], 0
and dword [ecx + 0x97a], 0x803fffff
cmp byte [ecx + 0xce0], 1
mov dword [esp + 0x24], 0
sete byte [esp + 0x40]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x1c], ecx
sub eax, 4
je 0x4ba1d0
sub eax, 6
je 0x4ba1c6
sub eax, 1
je 0x4ba1d0
jmp 0x4ba1d8
mov byte [esp + 0x12], 0
mov byte [esp + 0x64], 0
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x5c]
movzx ebx, byte [esp + 0x64]
movzx edx, ax
mov word [esp + 0x14], ax
imul eax, esi, 0x4b
movzx eax, word [eax + 0x594170]
imul ecx, eax, 0x36
mov eax, dword [0x5c96aa]
add ecx, ebx
movsx edi, byte [ecx + eax + 0x2c]
movzx eax, byte [esp + 0x6c]
mov dword [esp + 0x3c], eax
cmp eax, 4
ja case.default.0x4ba214
jmp dword [eax*4 + 0x4ba7ec]
mov eax, dword [esp + 0x5c]
lea edx, [edi + edi*2]
mov esi, dword [esp + 0x6c]
shl edx, 4
add edx, dword [0x6ba2bc]
mov dword [esp + 0x28], esi
sub al, byte [edx + 2]
mov byte [esp + 0x14], al
mov byte [esp + 0x64], al
mov al, byte [edx + 3]
sub byte [esp + 0x15], al
mov bx, word [esp + 0x14]
mov dword [esp + 0x5c], ebx
jmp 0x4ba416
mov ecx, dword [esp + 0x5c]
movzx eax, cl
shl ax, 8
push 1
push dword [esp + 0x6c]
mov word [esp + 0x58], ax
mov eax, ecx
push dword [esp + 0x6c]
shr eax, 8
push dword [esp + 0x6c]
movzx eax, al
shl ax, 8
push ecx
mov word [esp + 0x66], ax
call fcn.004ba8f0
mov eax, dword [esp + 0x70]
lea ecx, [edi + edi*2]
shl ecx, 4
add ecx, dword [0x6ba2bc]
mov dword [esp + 0x34], ecx
sub al, byte [ecx + 2]
mov byte [esp + 0x78], al
mov byte [esp + 0x28], al
mov al, byte [ecx + 3]
sub byte [esp + 0x29], al
mov eax, dword [0x5c6f4b]
mov dword [eax], edi
mov ax, word [esp + 0x28]
movzx ecx, ax
mov dword [esp + 0x70], eax
mov eax, dword [0x5c6f4b]
mov dword [eax + 4], ecx
mov eax, dword [0x5c6f4b]
mov dword [eax + 8], esi
mov eax, dword [0x5c6f4b]
mov dword [eax + 0xc], ebx
mov eax, dword [0x5c6f4b]
mov dword [eax + 0x10], 0
lea eax, [esp + 0x64]
add dword [0x5c6f4b], 0x14
push eax
push dword [esp + 0x80]
mov byte [0x5c6f42], 1
push 1
push 9
call fcn.004bc310
mov edi, eax
add esp, 0x24
mov dword [esp + 0x28], edi
test edi, edi
je 0x4ba7e2
mov edx, dword [esp + 0x20]
lea ecx, [ebp*8]
mov ebx, dword [esp + 0x5c]
sub ecx, ebp
mov eax, dword [ecx*8 + 0x6a00a2]
btr eax, esi
mov dword [ecx*8 + 0x6a00a2], eax
jmp 0x4ba41a
mov eax, dword [esp + 0x5c]
movzx eax, ax
mov ecx, eax
and eax, 0xfe
shr ecx, 1
and ecx, 0x7f00
or ecx, eax
shr ecx, 1
imul eax, ecx, 0x1a
movzx eax, byte [eax + 0x5d76a4]
mov edi, dword [eax*4 + 0x5c4ea4]
push edi
mov dword [esp + 0x2c], edi
movzx eax, byte [edi + 0xab]
mov bx, word [edi + 0x78]
mov dword [esp + 0x60], ebx
mov word [esp + 0x18], bx
lea ecx, [eax + eax*2]
shl ecx, 4
add ecx, dword [0x6ba2bc]
mov dword [esp + 0x24], ecx
call fcn.004bcf70
mov al, byte [esp + 0x18]
add esp, 4
mov edx, dword [esp + 0x20]
mov byte [esp + 0x64], al
jmp 0x4ba41a
mov eax, edx
mov ecx, eax
and eax, 0xfe
shr ecx, 1
and ecx, 0x7f00
or ecx, eax
shr ecx, 1
imul eax, ecx, 0x1a
movzx eax, byte [eax + 0x5d76a4]
mov edi, dword [eax*4 + 0x5c4ea4]
mov dword [esp + 0x28], edi
movzx eax, byte [edi + 0xab]
mov bx, word [edi + 0x78]
mov word [esp + 0x14], bx
mov dword [esp + 0x5c], ebx
lea edx, [eax + eax*2]
mov al, byte [esp + 0x14]
shl edx, 4
add edx, dword [0x6ba2bc]
mov byte [esp + 0x64], al
jmp 0x4ba416
mov al, byte [esp + 0x14]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x5c]
mov byte [esp + 0x64], al
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
movzx esi, byte [edx + 1]
xor eax, eax
movzx ecx, byte [edx]
mov ebp, dword [edx + 0x2c]
mov dword [esp + 0x2c], eax
mov word [esp + 0x18], bx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], esi
test esi, esi
je 0x4ba660
nop
xor ebx, ebx
test ecx, ecx
je 0x4ba642
nop word [eax + eax]
movzx eax, word [esp + 0x18]
mov edi, dword [esp + 0x18]
mov ecx, eax
shr ecx, 1
and eax, 0xfe
and ecx, 0x7f00
or ecx, eax
shr ecx, 1
imul esi, ecx, 0x1a
mov cl, byte [esp + 0x6c]
add esi, 0x5d7692
test cl, cl
je 0x4ba482
cmp cl, 1
jne 0x4ba4e3
movsx eax, byte [edx + 6]
shl eax, 5
sar eax, 8
cmp ebx, eax
jne 0x4ba4b6
movsx eax, byte [edx + 7]
shl eax, 5
sar eax, 8
cmp dword [esp + 0x2c], eax
jne 0x4ba4b6
mov eax, dword [esi]
test cl, cl
jne 0x4ba4af
or eax, 0x800
mov dword [esi], eax
jmp 0x4ba4ba
and eax, 0xfffff7ff
mov dword [esi], eax
test cl, cl
jne 0x4ba4e3
test byte [ebp], 4
je 0x4ba4e3
push edi
call fcn.004a6ad0
add esp, 4
test al, al
je 0x4ba4e3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], 1
or dword [eax + 0x97a], 0x20000000
test byte [ebp], 1
je case.default.0x4ba4fa
mov eax, dword [esp + 0x3c]
cmp eax, 4
ja case.default.0x4ba4fa
jmp dword [eax*4 + 0x4ba800]
mov eax, dword [esi]
and eax, 0xfffffeff
or eax, 0x90
cmp dword [esp + 0x24], 0
mov dword [esi], eax
jne 0x4ba54f
push dword [esp + 0x30]
push dword [esp + 0x38]
push edi
call fcn.004a8000
add esp, 0xc
mov dword [esp + 0x24], eax
cmp byte [esp + 0x60], 0xd
jne 0x4ba54f
test eax, eax
jne 0x4ba54f
mov eax, dword [esp + 0x30]
add eax, 2
push eax
push dword [esp + 0x38]
push edi
call fcn.004a8000
add esp, 0xc
mov dword [esp + 0x24], eax
push dword [esp + 0x40]
mov al, byte [ebp]
push 0
push dword [esp + 0x68]
and al, 0xf8
movzx eax, al
push eax
push edi
mov edi, dword [esp + 0x30]
push edi
call fcn.004a7a30
mov ecx, dword [esi]
add esp, 0x18
test al, al
jne 0x4ba588
or dword [0x5cf410], 0x200000
or ecx, 0x100
mov dword [esi], ecx
mov eax, ecx
test eax, 0x100
jne case.default.0x4ba4fa
movsx eax, word [esi + 8]
mov eax, dword [eax*4 + 0x5c4ea4]
test eax, eax
je case.default.0x4ba4fa
cmp byte [eax + 0x31], 0xa
jne 0x4ba5b4
cmp byte [eax + 0x32], 0x10
je 0x4ba5c5
movzx eax, word [eax + 0x25]
mov eax, dword [eax*4 + 0x5c4ea4]
test eax, eax
jne 0x4ba5a8
jmp case.default.0x4ba4fa
or dword [0x5cf410], 0x200000
or ecx, 0x100
mov dword [esi], ecx
or dword [edi + 0x97a], 0x20000000
jmp case.default.0x4ba4fa
mov eax, dword [esi]
and eax, 0xfffffe7f
jmp 0x4ba61e
mov eax, dword [esp + 0x28]
mov cl, byte [esi + 0x14]
and cl, 0xf0
mov al, byte [eax + 0x29]
mov byte [esi + 0x12], al
mov al, byte [esp + 0x68]
inc al
or cl, al
or dword [esi], 0x410
mov byte [esi + 0x14], cl
jmp case.default.0x4ba4fa
and byte [esi + 0x14], 0xf0
mov eax, dword [esi]
and eax, 0xffffbbff
mov byte [esi + 0x12], 0
or eax, 0x10
mov dword [esi], eax
add byte [esp + 0x18], 2
inc ebx
mov ecx, dword [esp + 0x44]
inc ebp
mov edx, dword [esp + 0x20]
cmp ebx, ecx
jl 0x4ba450
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x48]
add byte [esp + 0x19], 2
inc eax
mov bl, byte [esp + 0x64]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x18], bl
cmp eax, esi
jl 0x4ba440
mov ebx, dword [esp + 0x5c]
cmp byte [esp + 0x6c], 0
jne 0x4ba7e2
cmp byte [esp + 0x12], 0
je 0x4ba715
mov al, byte [esp + 0x64]
and al, 0xfe
movzx ecx, al
movsx eax, byte [edx + 6]
shl cx, 2
add cx, ax
mov al, byte [esp + 0x15]
shl cx, 6
and al, 0xfe
mov word [esp + 0x48], cx
movzx ecx, al
movsx eax, byte [edx + 7]
shl cx, 2
add cx, ax
lea eax, [esp + 0x48]
shl cx, 6
push 0
push eax
mov word [esp + 0x52], cx
call fcn.00444af0
add esp, 8
test al, al
je 0x4ba715
movzx eax, al
xor dl, dl
dec eax
cmp eax, 3
ja case.default.0x4ba6ce
jmp dword [eax*4 + 0x4ba814]
mov ecx, dword [esp + 0x1c]
or dword [ecx + 0x97a], 0x10000000
jmp 0x4ba71d
mov ecx, dword [esp + 0x1c]
or dword [ecx + 0x97a], 0x1000000
jmp 0x4ba71d
mov ecx, dword [esp + 0x1c]
or dword [ecx + 0x97a], 0x800000
jmp 0x4ba71d
mov ecx, dword [esp + 0x1c]
or dword [ecx + 0x97a], 0x20000000
jmp 0x4ba71d
mov dl, byte [esp + 0x13]
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x24], 0
je 0x4ba735
test dl, dl
je 0x4ba74d
cmp dword [esp + 0x38], 0
je 0x4ba7e2
jmp 0x4ba74d
mov eax, dword [ecx + 0x97a]
test eax, 0x800000
jne 0x4ba74d
or eax, 0x400000
mov dword [ecx + 0x97a], eax
mov ecx, dword [esp + 0x20]
or dword [0x5cf410], 0x200000
mov word [esp + 0x18], bx
movzx ebp, byte [ecx + 1]
movzx eax, byte [ecx]
mov esi, dword [ecx + 0x2c]
mov dword [esp + 0x6c], eax
test ebp, ebp
je 0x4ba7e2
mov bl, byte [esp + 0x19]
mov dl, byte [esp + 0x18]
mov cl, byte [esp + 0x64]
nop
test eax, eax
je 0x4ba7d0
mov edi, eax
nop word [eax + eax]
movzx eax, word [esp + 0x18]
mov ecx, eax
and eax, 0xfe
shr ecx, 1
and ecx, 0x7f00
or ecx, eax
shr ecx, 1
imul eax, ecx, 0x1a
add eax, 0x5d7692
test byte [esi], 1
je 0x4ba7bb
or dword [eax], 0x100
add dl, 2
inc esi
mov byte [esp + 0x18], dl
sub edi, 1
jne 0x4ba790
mov eax, dword [esp + 0x6c]
mov cl, byte [esp + 0x64]
add bl, 2
mov dl, cl
mov byte [esp + 0x19], bl
mov byte [esp + 0x18], dl
sub ebp, 1
jne 0x4ba780
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret