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

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x34]
test esi, esi
jle 0x100b7c51
mov eax, dword [esp + 0x38]
lea ecx, [eax*4]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x2c]
lea edx, [eax + eax*2]
push ebx
add edx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x40]
push ebp
add edx, edx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x4c]
push edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], ecx
lea esp, [esp]
cmp dword [esp + 0x3c], 0
jle 0x100b7c35
lea edx, [ecx + eax*4]
mov edi, 2
lea eax, [ecx + eax*8]
mov ebx, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebx
jmp 0x100b79aa
mov ebx, dword [esp + 0x10]
lea eax, [ebx - 2]
push eax
push ecx
call sym.leptonlib.dll_l_getDataByte
mov ecx, dword [esp + 0x20]
mov ebp, eax
lea eax, [ebx - 1]
push eax
push ecx
shl ebp, 8
call sym.leptonlib.dll_l_getDataByte
mov edx, dword [esp + 0x28]
or ebp, eax
push ebx
push edx
shl ebp, 8
call sym.leptonlib.dll_l_getDataByte
mov ebx, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffffe
push eax
mov eax, dword [esp + 0x38]
push eax
or ebx, ebp
call sym.leptonlib.dll_l_getDataByte
mov ecx, dword [esp + 0x3c]
mov ebp, eax
mov eax, dword [esp + 0x30]
dec eax
push eax
push ecx
shl ebp, 8
call sym.leptonlib.dll_l_getDataByte
mov edx, dword [esp + 0x38]
or ebp, eax
mov eax, dword [esp + 0x44]
push edx
shl ebp, 8
push eax
mov dword [esp + 0x54], ebp
call sym.leptonlib.dll_l_getDataByte
mov ecx, dword [esp + 0x50]
mov ebp, eax
mov eax, dword [esp + 0x40]
or ebp, dword [esp + 0x54]
add eax, 0xfffffffe
push eax
push ecx
call sym.leptonlib.dll_l_getDataByte
mov edx, dword [esp + 0x58]
shl eax, 8
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
dec eax
push eax
push edx
call sym.leptonlib.dll_l_getDataByte
mov ecx, dword [esp + 0x64]
or ecx, eax
mov eax, dword [esp + 0x50]
shl ecx, 8
add esp, 0x40
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call sym.leptonlib.dll_l_getDataByte
or eax, dword [esp + 0x2c]
mov edx, ebp
mov dword [esp + 0x2c], eax
shr eax, 0x12
mov eax, dword [esi + eax*4]
shr edx, 0x12
add eax, dword [esi + edx*4]
mov ecx, ebx
shr ecx, 0x12
add eax, dword [esi + ecx*4]
push 2
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
push edx
call sym.leptonlib.dll_l_getDataByte
mov ecx, dword [esp + 0x64]
movzx edx, byte [eax + ecx]
mov ecx, dword [esp + 0x24]
push edx
lea eax, [edi - 2]
push eax
push ecx
call sym.leptonlib.dll_l_setDataByte
lea edx, [esp + 0x5c]
push 3
push edx
call sym.leptonlib.dll_l_getDataByte
mov ecx, dword [esp + 0x78]
movzx edx, byte [eax + ecx]
mov ecx, dword [esp + 0x38]
push edx
lea eax, [edi - 1]
push eax
push ecx
call sym.leptonlib.dll_l_setDataByte
mov edx, dword [esp + 0x54]
shr edx, 0xc
and edx, 0x3f
mov ecx, dword [esi + edx*4]
mov eax, ebp
shr eax, 0xc
and eax, 0x3f
add ecx, dword [esi + eax*4]
mov edx, ebx
shr edx, 0xc
and edx, 0x3f
add ecx, dword [esi + edx*4]
lea eax, [esp + 0x70]
push 2
push eax
mov dword [esp + 0x78], ecx
call sym.leptonlib.dll_l_getDataByte
mov ecx, dword [esp + 0x8c]
movzx edx, byte [eax + ecx]
mov eax, dword [esp + 0x4c]
push edx
push edi
push eax
call sym.leptonlib.dll_l_setDataByte
add esp, 0x44
lea ecx, [esp + 0x40]
push 3
push ecx
call sym.leptonlib.dll_l_getDataByte
mov edx, dword [esp + 0x5c]
movzx eax, byte [eax + edx]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [edi + 1]
push ecx
push edx
call sym.leptonlib.dll_l_setDataByte
mov eax, dword [esp + 0x38]
shr eax, 6
and eax, 0x3f
mov edx, dword [esi + eax*4]
mov ecx, ebp
shr ecx, 6
and ecx, 0x3f
add edx, dword [esi + ecx*4]
mov eax, ebx
shr eax, 6
and eax, 0x3f
add edx, dword [esi + eax*4]
lea ecx, [esp + 0x54]
push 2
push ecx
mov dword [esp + 0x5c], edx
call sym.leptonlib.dll_l_getDataByte
mov edx, dword [esp + 0x70]
movzx eax, byte [eax + edx]
mov edx, dword [esp + 0x30]
push eax
lea ecx, [edi + 2]
push ecx
push edx
call sym.leptonlib.dll_l_setDataByte
lea eax, [esp + 0x68]
push 3
push eax
call sym.leptonlib.dll_l_getDataByte
mov ecx, dword [esp + 0x84]
movzx edx, byte [eax + ecx]
mov ecx, dword [esp + 0x44]
push edx
lea eax, [edi + 3]
push eax
push ecx
call sym.leptonlib.dll_l_setDataByte
mov eax, dword [esp + 0x60]
and eax, 0x3f
mov edx, dword [esi + eax*4]
and ebp, 0x3f
add edx, dword [esi + ebp*4]
and ebx, 0x3f
add edx, dword [esi + ebx*4]
lea eax, [esp + 0x7c]
push 2
push eax
mov dword [esp + 0x84], edx
call sym.leptonlib.dll_l_getDataByte
mov ebp, dword [esp + 0x98]
movzx ecx, byte [eax + ebp]
mov ebx, dword [esp + 0x58]
add esp, 0x44
push ecx
lea edx, [edi + 4]
push edx
push ebx
call sym.leptonlib.dll_l_setDataByte
lea eax, [esp + 0x4c]
push 3
push eax
call sym.leptonlib.dll_l_getDataByte
movzx ecx, byte [eax + ebp]
push ecx
lea edx, [edi + 5]
push edx
push ebx
call sym.leptonlib.dll_l_setDataByte
add dword [esp + 0x30], 3
mov ecx, dword [esp + 0x38]
add edi, 8
lea eax, [edi - 2]
add esp, 0x20
cmp eax, dword [esp + 0x3c]
jl 0x100b79a6
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
add dword [esp + 0x14], edi
add ecx, edx
sub dword [esp + 0x28], 1
mov dword [esp + 0x18], ecx
jne 0x100b7980
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x24
ret