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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 4]
mov dword [esp + 0x14], ecx
movsx ecx, byte [edi + 0x44]
movzx ebp, word [edi + ecx*2 + 0x50]
mov ebx, dword [edi + ecx*4 + 0x78]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0x40]
mov dx, word [ecx + ebp*2]
mov ch, dl
mov dword [esp + 0x1c], ebp
and al, 2
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0
mov byte [esp + 0x13], al
mov cl, dh
movzx edx, word [ebx + 0x14]
movzx ebp, cx
and ebp, edx
add ebp, dword [ebx + 0x38]
test al, al
je 0x100bd0aa
cmp byte [ebx + 4], 0
je 0x100bd09b
push ebp
push ebx
call fcn.100b5aa0
movzx ecx, word [ebx + 0x10]
mov edx, dword [esi + 0x24]
movzx eax, ax
lea ecx, [eax + ecx + 2]
add edx, edx
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
add esp, 8
cmp ecx, edx
jg 0x100bd09b
mov dword [esp + 0x24], 1
jmp 0x100bd0aa
mov eax, edi
call fcn.100b5370
test eax, eax
jne 0x100bd2b6
cmp byte [ebx + 4], 0
jne 0x100bd0ce
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x20], 0
call fcn.100b9e20
add esp, 8
test eax, eax
jne 0x100bd2b6
test byte [edi + 0x40], 0x20
je 0x100bd0e8
mov ecx, dword [edi + 0x34]
mov edx, edi
mov eax, esi
call fcn.100b53e0
test eax, eax
jne 0x100bd2b6
cmp dword [edi + 0x48], 0
jne 0x100bd104
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push edx
xor esi, esi
call fcn.100b5290
add esp, 8
mov esi, dword [ebx + 0x48]
call fcn.100b18a0
test eax, eax
jne 0x100bd2b6
lea eax, [esp + 0x14]
push eax
mov eax, ebp
mov ecx, ebx
call fcn.100ba760
movzx edx, word [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
push edx
push eax
mov esi, ebx
call fcn.100babe0
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x100bd2b6
cmp byte [ebx + 4], al
jne 0x100bd21b
movsx ecx, byte [edi + 0x44]
mov ebp, dword [edi + ecx*4 + 0x78]
mov edx, dword [esp + 0x20]
mov eax, dword [edi + edx*4 + 0x7c]
mov ecx, dword [eax + 0x54]
movzx edx, word [ebp + 0x12]
mov eax, dword [ebp + 0x40]
mov esi, dword [ebp + 0x38]
mov dword [esp + 0x14], ecx
mov cx, word [eax + edx*2 - 2]
mov dh, cl
mov dl, ch
movzx ecx, word [ebp + 0x14]
movzx eax, dx
and eax, ecx
add eax, esi
add esi, 4
cmp eax, esi
mov dword [esp + 0x30], eax
jae 0x100bd1a9
mov eax, 0x10192
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
jmp fcn.101101f0
mov edx, dword [ebp + 0x4c]
push eax
push ebp
call edx
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x50]
mov esi, dword [ebp + 0x48]
movzx eax, ax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
call fcn.100b18a0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esi + 4]
push edx
add eax, 0xfffffffc
push eax
mov eax, dword [esp + 0x40]
push ecx
push ebx
call fcn.100bad30
movzx eax, word [ebp + 0x12]
lea edx, [esp + 0x38]
push edx
push esi
sub eax, 1
push eax
mov esi, ebp
call fcn.100babe0
mov eax, dword [esp + 0x44]
add esp, 0x2c
test eax, eax
jne 0x100bd2b6
call fcn.100bcc10
test eax, eax
jne 0x100bd2b6
movsx ecx, byte [edi + 0x44]
mov esi, dword [esp + 0x20]
cmp ecx, esi
jle 0x100bd264
mov al, byte [edi + 0x44]
movsx edx, al
mov ecx, dword [edi + edx*4 + 0x78]
sub al, 1
test ecx, ecx
mov byte [edi + 0x44], al
je 0x100bd253
mov eax, dword [ecx + 0x48]
push eax
call fcn.100b1290
add esp, 4
movsx ecx, byte [edi + 0x44]
cmp ecx, esi
jg 0x100bd234
call fcn.100bcc10
test eax, eax
jne 0x100bd2b6
cmp dword [esp + 0x24], 0
je 0x100bd2a4
mov byte [edi + 0x42], 2
movzx edx, word [ebx + 0x12]
cmp dword [esp + 0x1c], edx
jl 0x100bd295
mov dword [edi + 0x3c], 0xffffffff
mov cx, word [ebx + 0x12]
sub cx, 1
mov word [edi + esi*2 + 0x50], cx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov dword [edi + 0x3c], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, edi
call fcn.100b94d0
cmp byte [esp + 0x13], 0
je 0x100bd2b6
mov byte [edi + 0x42], 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret