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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x18], eax
movzx edx, byte [eax + 0x15]
xor eax, eax
cmp edx, 4
ja case.default.0x5a10b8
jmp dword [edx*4 + 0x7ef558]
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ebx, dword [eax + 0x44]
mov ecx, edx
mov eax, dword [eax + 0x18]
mov edx, dword [edx]
lea edx, [edx + eax*4]
inc eax
mov dword [ecx + 0x18], eax
mov eax, esi
mov dword [esp], 0xfffffffd
call fcn.005a0cac
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
cmp dword [edx + 0x18], eax
jl 0x5a10f2
mov byte [edx + 0x15], 3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x44]
sub ebx, eax
sub dword [ecx + 0x48], ebx
mov eax, 0xa
lea esi, [esi]
lea edi, [edi]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x5a142d
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov byte [ecx + 0x15], 0
mov dword [ecx + 0x4c], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
call fcn.005a100c
xor eax, eax
jmp 0x5a1132
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x24]
test eax, eax
jne 0x5a13f7
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ecx + 0x8c]
mov edi, ecx
add edi, 0x78
lea esi, [esi]
lea edi, [edi]
cmp edi, ebx
je 0x5a1241
movzx eax, byte [ebx + 5]
test al, 4
jne 0x5a119c
test al, 3
jne 0x5a119c
mov eax, dword [ebx + 8]
cmp dword [eax + 8], 3
jle 0x5a119c
mov edx, dword [eax]
test byte [edx + 5], 3
jne 0x5a13a4
lea esi, [esi]
mov ebx, dword [ebx + 0x14]
jmp 0x5a116c
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x20]
mov edi, dword [eax + 0x44]
mov dword [esp], 0x28
mov eax, esi
call fcn.005a0cac
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x20], eax
mov eax, dword [eax]
test eax, eax
jne 0x5a1229
mov ebx, dword [esi + 0x10]
mov edx, dword [ebx + 8]
test edx, edx
mov eax, edx
js 0x5a13c3
sar eax, 2
cmp dword [ebx + 4], eax
jae 0x5a11e5
cmp edx, 0x40
jg 0x5a1412
mov eax, dword [ebx + 0x3c]
cmp eax, 0x40
jbe 0x5a1222
shr eax, 1
mov dword [ebp - 0x14], eax
inc eax
cmp eax, 0xfffffffd
ja 0x5a1405
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0xc], ecx
mov eax, dword [ebx + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.005ade7c
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x3c], eax
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x15], 4
mov ecx, dword [ebp - 0x18]
mov eax, 0x190
mov esi, dword [ecx + 0x44]
sub edi, esi
sub dword [ecx + 0x48], edi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x18]
call fcn.005a0c2c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x2c]
mov dword [edx + 0x2c], 0
mov dword [edx + 0x24], eax
test byte [esi + 5], 3
jne 0x5a13b4
mov eax, dword [ebp - 0x18]
call fcn.005a0fbc
mov eax, dword [ebp - 0x18]
call fcn.005a0c2c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x28]
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x24], eax
mov eax, ecx
call fcn.005a0c2c
mov dword [esp], esi
xor eax, eax
mov dword [esp + 4], eax
call fcn.005a05ac
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 0x30]
test ebx, ebx
jmp 0x5a12cb
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x18]
movzx eax, byte [ebx + 5]
movzx edx, byte [ecx + 0x14]
and al, 0xf8
and dl, 3
or al, dl
mov edx, ebx
mov byte [ebx + 5], al
mov eax, ecx
call fcn.005a04bc
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x30], ebx
jne 0x5a12a5
mov eax, dword [ebp - 0x18]
call fcn.005a0c2c
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
mov edi, dword [edx + 0x2c]
lea esi, [esi]
lea edi, [edi]
test edi, edi
je 0x5a13cb
test byte [edi + 5], 0x10
mov esi, dword [edi + 0x1c]
je 0x5a133c
jmp 0x5a130c
dec esi
cmp esi, 0xffffffff
je 0x5a133c
mov eax, dword [edi + 0xc]
mov ebx, esi
xor edx, edx
shl ebx, 4
add ebx, eax
mov eax, ebx
call fcn.005a0c5c
test eax, eax
je 0x5a130c
mov dword [ebx + 8], 0
dec esi
cmp esi, 0xffffffff
jne 0x5a1312
lea esi, [esi]
movzx ecx, byte [edi + 7]
mov esi, 1
shl esi, cl
nop
lea esi, [esi]
dec esi
cmp esi, 0xffffffff
je 0x5a139c
mov eax, dword [edi + 0x10]
mov ebx, esi
shl ebx, 5
add ebx, eax
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x5a134c
lea eax, [ebx + 0x10]
mov edx, 1
call fcn.005a0c5c
test eax, eax
jne 0x5a1381
xor edx, edx
mov eax, ebx
call fcn.005a0c5c
test eax, eax
je 0x5a134c
mov dword [ebx + 8], 0
mov eax, ebx
call fcn.005a049c
dec esi
cmp esi, 0xffffffff
jne 0x5a1352
lea esi, [esi]
mov edi, dword [edi + 0x18]
jmp 0x5a12ec
mov eax, dword [ebp - 0x18]
call fcn.005a04bc
mov ebx, dword [ebx + 0x14]
jmp 0x5a116c
mov eax, dword [ebp - 0x18]
mov edx, esi
call fcn.005a04bc
jmp 0x5a1263
lea eax, [edx + 3]
jmp 0x5a11d4
mov ecx, dword [ebp - 0x18]
mov eax, ecx
add eax, 0x1c
xor byte [ecx + 0x14], 3
mov byte [ecx + 0x15], 2
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x18], 0
mov eax, dword [ecx + 0x44]
sub eax, edx
mov dword [ecx + 0x48], eax
xor eax, eax
jmp 0x5a1132
add esp, 0x1c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.005a067c
mov dword [esp], esi
call fcn.005ade5c
jmp 0x5a1219
mov dword [esp], esi
mov eax, edx
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
mov dword [esp + 4], eax
call fcn.0059c0ac
jmp 0x5a11e5
mov eax, esi
call fcn.005a0e1c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x48]
cmp eax, 0x64
jbe 0x5a1445
sub eax, 0x64
mov dword [edx + 0x48], eax
mov eax, 0x64
jmp case.default.0x5a10b8