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

Disassembly:
sub esp, 0x38
mov eax, dword [0x10165114]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [0x1016510c]
mov dword [esp], eax
push ebx
push ebp
mov ebp, dword [0x10165108]
inc ebp
movzx ebx, word [0x101650f8]
mov dword [0x10165108], ebp
or ebp, eax
mov eax, dword [esp + 0x68]
push esi
movzx esi, ax
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], esi
lea eax, [esi + esi*2]
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x64], ebx
movzx ecx, word [eax + 0x1676]
mov eax, dword [0x10165150]
mov eax, dword [eax + 0x3070]
cdq
idiv ecx
mov edx, dword [0x10165138]
mov ecx, edx
mov edi, eax
add ecx, ecx
mov eax, dword [0x10165140]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
add eax, dword [0x10165110]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edi
movzx eax, byte [eax]
mov dword [esp + 0x24], eax
mov eax, dword [0x10165104]
mov eax, dword [eax + ecx*8]
sub eax, dword [0x10165144]
mov dword [esp + 0x14], eax
mov eax, dword [0x10165154]
mov ecx, dword [eax + esi*4]
mov eax, 0x96b
xor ecx, esi
mov dword [esp + 0x28], ecx
movzx eax, byte [eax]
mov al, byte [eax + ecx]
cmp al, byte [edx + 0xafa]
jb 0x10003fd1
cmp dword [0x1016511c], esi
jb 0x10003fd1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x50]
movzx eax, byte [ecx + eax*4]
cmp eax, 0x759
jb 0x10003fd1
mov eax, dword [esp + 0x10]
xor edx, edx
movzx esi, al
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x1c]
dec byte [esp + 0x10]
movzx eax, word [ebp + esi*2]
div dword [esp + 0x24]
mov byte [ecx], al
dec dword [0x10165110]
mov ebp, dword [0x10165124]
mov ecx, dword [0x10165154]
movzx eax, byte [ebp + 0x265]
or eax, dword [ecx + esi*4]
movzx ecx, word [0x1016513c]
xor eax, 0x17a5
cdq
idiv ecx
mov ecx, dword [esp + 0x18]
mov word [0x1016513c], ax
mov eax, dword [0x10165118]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x34], eax
mov eax, dword [0x101650f8]
mov ecx, dword [esp + 0x38]
dec eax
mov dword [0x101650f8], eax
mov ebx, dword [ebx + esi*4 + 0x74]
movzx edi, byte [esi + edi]
and ebx, eax
mov eax, dword [esp + 0x2c]
xor edi, dword [esp + 0x14]
movzx esi, word [eax + esi*8]
mov eax, 0x96b
movzx eax, byte [eax]
movzx edx, byte [eax + ebp]
mov ebp, dword [esp + 0x28]
movzx eax, byte [eax + 0xafa]
or eax, 0x1b74
push eax
movzx ecx, byte [ecx + ebp]
push ecx
push edx
push dword [esp + 0x2c]
push esi
push edi
push 0
push ebx
push dword [esp + 0x54]
call fcn.10002490
mov ebx, dword [esp + 0x34]
add esp, 0x24
mov dword [0x10165118], eax
mov eax, dword [esp + 0x70]
add eax, 2
movzx ecx, bl
movzx edi, ax
inc bl
mov dword [esp + 0x70], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ebx
mov al, byte [edi + 0x96b]
cmp byte [ecx + 0x980], al
ja 0x10003d03
mov ecx, dword [esp + 0x6c]
mov eax, 0x96b
movzx eax, byte [eax]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x4c]
cmp eax, dword [ecx + edi*4]
je 0x10003d03
mov edx, dword [0x101650fc]
jmp 0x10003e54
mov eax, 0x96b
movzx ebx, bl
xor edx, edx
movzx esi, byte [eax]
mov eax, 0x319
movzx ecx, byte [esi + 0x48c]
div ecx
lea ecx, [ebx + ebx*2]
mov byte [esi + 0x48c], al
movzx eax, byte [0x273d]
mov esi, dword [0x10165104]
mov dword [esp + 0x40], eax
lea eax, [edi + edi*2]
shl eax, 2
mov dword [esp + 0x44], eax
mov eax, dword [eax + esi]
mov dword [esp + 0x3c], eax
movzx eax, byte [edi + 0x96b]
mov edi, dword [0x10165154]
cdq
idiv dword [edi + ecx*4]
xor edx, edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
movzx ebp, byte [eax + 0x1ad]
mov eax, 0x96b
movzx ecx, byte [eax]
lea eax, [ecx + ecx*2]
mov eax, dword [esi + eax*4]
div dword [esp + 0x24]
mov eax, dword [0x10165128]
mov esi, edx
mov al, byte [eax + 0x96b]
sub al, byte [esp + 0x64]
mov byte [esp + 0x38], al
mov eax, 0x1cfa
cdq
idiv dword [edi + ecx*4 + 0x28]
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x20]
lea eax, [eax + ebx*2]
movzx ecx, byte [ebx + eax]
mov eax, dword [esp + 0x64]
movzx eax, ax
xor ecx, eax
mov eax, dword [esp + 0x1c]
push ecx
push dword [eax + edi*4]
push edx
push dword [esp + 0x44]
push esi
push ebp
push dword [esp + 0x2c]
push dword [esp + 0x50]
push dword [esp + 0x5c]
push dword [esp + 0x64]
call fcn.10001690
mov ecx, dword [esp + 0x6c]
add esp, 0x28
mov edx, dword [esp + 0x18]
mov dword [ecx + edx], eax
mov eax, 0x96b
add dword [0x10165130], edi
dec byte [eax]
mov cl, byte [eax]
mov eax, dword [esp + 0x54]
lea esi, [eax + edi*8]
movzx eax, cl
mov ecx, dword [esp + 0x28]
movzx edx, byte [eax + ecx]
mov ecx, dword [0x10165138]
mov eax, dword [0x10165124]
lea eax, [eax + ecx*2]
movzx ecx, byte [ecx + eax + 0x14]
mov eax, edx
xor edx, edx
div ecx
movzx ecx, word [esi]
movzx eax, ax
imul eax, ecx
mov word [esi], ax
mov eax, dword [esp + 0x50]
xor edx, edx
mov ebx, dword [esp + 0x10]
movzx eax, byte [edi + eax]
or eax, 0x139c
div dword [0x101650fc]
mov edx, eax
sub edx, dword [0x101650fc]
inc edx
mov dword [0x101650fc], edx
mov eax, dword [0x10165154]
movzx esi, bl
mov dword [esp + 0x40], esi
mov cl, byte [eax + esi*4]
or cl, byte [esi + 0x48c]
sub cl, dl
xor edx, edx
add cl, byte [esp + 0x64]
xor byte [edi + 0x1321], cl
mov ecx, dword [0x101650fc]
movzx edi, byte [esi + 0x96b]
movzx eax, byte [ecx + 0x48c]
mov ecx, dword [esp + 0x14]
dec ecx
imul eax, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x44], eax
mov eax, dword [0x10165138]
mov eax, dword [ecx + eax*4]
div dword [0x1016511c]
mov edx, dword [esp + 0x70]
mov ebp, eax
inc edx
mov eax, dword [esp + 0x18]
movzx ecx, dx
add edx, 0xfffe
mov dword [esp + 0x70], edx
mov ebx, dword [eax + ecx*4]
mov eax, dword [esp + 0x1c]
imul ebx, dword [eax + 0x3aa0]
mov eax, dword [esp + 0x20]
movzx ecx, byte [eax + 0x490]
mov eax, dword [0x10165110]
xor edi, ecx
mov ecx, dword [esp + 0x2c]
mov al, byte [eax*4 + 0x96b]
sub al, byte [ecx + 0x2ad4]
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x6c], al
mov eax, dword [0x101650f8]
movzx esi, byte [eax + ecx + 0x1c]
mov eax, dword [esp + 0x58]
add esi, dword [0x1016510c]
movzx ecx, dx
mov edx, dword [eax + ecx*4]
mov eax, dword [0x10165120]
push dword [eax + ecx*4 + 0x10]
mov eax, dword [esp + 0x24]
push edx
push esi
push dword [esp + 0x78]
mov esi, dword [esp + 0x5c]
push dword [esi + eax*4]
push edi
push ebx
push ebp
push dword [esp + 0x64]
push eax
call fcn.10001690
mov edx, dword [0x101650f8]
add esp, 0x28
mov ecx, dword [0x10165120]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x70]
inc dword [0x101650f8]
add eax, 0xffff
movzx edx, ax
movzx eax, byte [0x10165101]
cmp dword [esi + edx*4], eax
je 0x10003f83
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x40]
movzx ecx, byte [edx + eax + 1]
mov eax, dword [0x10165154]
cmp dword [eax + esi*4 + 0x10], ecx
jl 0x10003fc2
mov ecx, dword [esp + 0x30]
mov al, byte [0x1016511c]
add byte [edx + ecx], al
mov eax, dword [esp + 0x64]
inc eax
mov dword [esp + 0x64], eax
movzx eax, ax
cdq
idiv dword [0x1016514c]
mov eax, dword [0x10165128]
imul edx, dword [0x101650f8]
xor edx, eax
sub edx, dword [0x10165148]
dec eax
mov dword [0x10165148], edx
mov dword [0x10165128], eax
mov eax, dword [esp + 0x64]
pop edi
pop esi
pop ebp
movzx eax, ax
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
movzx eax, bx
pop ebx
add esp, 0x38
ret