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

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x50]
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 0xc]
cmp byte [edx + 0xf0], 0
push esi
push edi
jne 0x101a61c0
cmp word [ebp + 0x3e], 0xfffe
jne 0x101a5f7d
lea ecx, [esp + 0x7c]
push ecx
call fcn.10001b00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x28
mov eax, dword [ebp + 0xc]
add dword [esp + 0x60], eax
movzx eax, word [ebp + 0x3c]
mov edx, dword [ebp + 8]
add dword [esp + 0x5c], edx
test ax, ax
mov esi, dword [ebp + 0x38]
mov dword [esp + 0x1c], 0
mov byte [esp + 0x58], 1
je 0x101a5fad
movzx edx, ax
lea ebx, [edx + esi - 1]
jmp 0x101a5faf
mov ebx, esi
mov eax, dword [esp + 0x74]
add ebx, 1
cmp esi, eax
mov dword [esp + 0x14], ebx
ja 0x101a5ff7
mov edi, dword [ecx]
mov ebx, dword [ebp + 0x38]
mov esi, eax
movzx eax, byte [ebp + 0x28]
and eax, 0xffffff01
push eax
mov eax, ebp
mov byte [esp + 0x5c], 0
add edi, 0x304
call fcn.101a67f0
mov edx, dword [edi]
push eax
mov ecx, esi
sub ecx, ebx
push ecx
mov ecx, dword [ebp + 4]
push ebx
call edx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x101a6016
lea eax, [esp + 0x78]
jb 0x101a6009
lea eax, [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov byte [esp + 0x58], 0
mov ebx, eax
movzx eax, word [ebp + 0x3e]
cmp ax, 0xffff
je 0x101a6040
movzx eax, ax
add eax, dword [ebp + 0x38]
mov dword [esp + 0x58], eax
cmp eax, ebx
lea eax, [esp + 0x58]
jb 0x101a6036
lea eax, [esp + 0x14]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov ebx, ecx
jmp 0x101a6047
cmp byte [esp + 0x58], 0
jne 0x101a6073
movzx eax, byte [ebp + 0x28]
mov edx, dword [ebp + 4]
mov edi, dword [edx]
and eax, 0xffffff01
push eax
mov eax, ebp
add edi, 0x304
call fcn.101a67f0
add eax, dword [esp + 0x20]
mov ecx, dword [ebp + 4]
mov edx, dword [edi]
push eax
sub ebx, esi
push ebx
push esi
call edx
cmp byte [esp + 0x6c], 0
je 0x101a61c0
mov eax, dword [ebp]
mov edx, dword [eax + 0x7c]
mov ecx, ebp
call edx
mov edx, dword [esp + 0x60]
mov ecx, dword [ebp + 8]
add ecx, dword [esp + 0x5c]
add eax, edx
mov dword [esp + 0x20], eax
mov al, byte [ebp + 0x29]
test al, 8
mov dword [esp + 0x1c], ecx
jne 0x101a60b3
mov ecx, dword [esp + 0x64]
test byte [ecx + 0xc], 1
mov byte [esp + 0x6c], 0
je 0x101a60b8
mov byte [esp + 0x6c], 1
mov esi, dword [ebp + 0x2c]
mov edi, dword [ebp + 4]
shr al, 2
and al, 1
mov bl, al
shl esi, 0x13
mov eax, ebp
sar esi, 0x13
call fcn.101a67f0
mov dword [esp + 0x5c], eax
mov eax, edi
call fcn.1012cb40
mov cl, byte [esp + 0x6c]
test eax, eax
mov eax, dword [esp + 0x5c]
setne dl
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x78]
mov byte [esp + 0x3c], dl
mov edx, dword [esp + 0x74]
mov dword [esp + 0x44], esi
movzx esi, word [ebp + 0x3c]
mov byte [esp + 0x49], cl
mov ecx, dword [ebp + 0x38]
sub eax, ecx
sub edx, ecx
cmp esi, eax
mov byte [esp + 0x48], bl
mov byte [esp + 0x4a], 1
mov byte [esp + 0x4b], 1
mov byte [esp + 0x4c], 1
mov dword [esp + 0x6c], esi
mov dword [esp + 0x5c], eax
lea edi, [esp + 0x6c]
jb 0x101a6134
lea edi, [esp + 0x5c]
mov eax, dword [ebp + 4]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 8]
lea ecx, [eax + ecx*2]
push edx
mov edx, dword [ebp]
mov eax, dword [edx + 0x80]
mov dword [esp + 0x18], ecx
mov ecx, ebp
mov dword [esp + 0x1c], esi
call eax
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, dword [edi]
push ecx
lea ecx, [esp + 0x44]
call fcn.100c2450
mov esi, eax
lea edi, [esp + 0x1c]
call fcn.10106cd0
mov edx, dword [esp + 0x70]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov ecx, dword [esp + 0x84]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x88]
mov dword [eax + 8], edx
add eax, 0xc
lea ecx, [esp + 0x8c]
call fcn.10001c10
mov eax, dword [ebp + 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov edx, edi
push edx
call fcn.100b3830
lea eax, [esp + 0x7c]
push eax
call fcn.10001b00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x28