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

Disassembly:
sub esp, 0x20
movzx eax, word [0x1016513c]
xor edx, edx
mov ecx, dword [0x1016510c]
push ebx
push ebp
imul ebp, eax, 0x1136
inc ecx
mov eax, dword [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0x3c]
mov esi, dword [0x10165130]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], esi
mov eax, dword [eax + edi*4]
and eax, edi
mov dword [esp + 0x20], eax
mov eax, dword [0x10165154]
mov ebx, dword [eax + edi*4]
mov eax, 0x1637
div ecx
mov dword [0x1016510c], ecx
and ebx, edi
mov ecx, dword [esi]
mov byte [esp + 0x13], al
movzx edx, byte [ecx + ebp]
mov ecx, ebx
dec ebx
mov dword [esp + 0x1c], ebx
cmp edx, ecx
je 0x10001074
cmp dword [0x10165148], 0x11cc
jg 0x1000108c
mov ecx, dword [0x101650fc]
dec ecx
movzx eax, al
mov dword [0x101650fc], ecx
cmp eax, ecx
jae 0x100011d2
mov eax, dword [esi]
mov ecx, 0x17ef
mov ebx, dword [esp + 0x38]
add esi, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], esi
cmp word [ebx + eax*2], cx
ja 0x100011d2
mov eax, dword [esi]
add esi, 4
movzx ecx, word [ebx + edi*2]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], 0x153f
mov eax, dword [edx + eax*4]
xor edx, edx
div ecx
mov word [ebx + edi*2], ax
mov edi, 0xc3b
mov ecx, dword [0x10165138]
mov eax, dword [esp + 0x54]
mov eax, dword [eax + ecx*4]
cdq
idiv edi
mov eax, dword [0x10165104]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x54]
mov ebp, dword [eax + ecx*8]
mov ecx, dword [esi]
xor ebp, 0x78b
mov eax, dword [0x10165154]
movzx ebx, word [ebx + ecx*2]
add ebx, dword [eax + ecx*4 + 0x80]
dec ecx
mov eax, dword [esp + 0x44]
movzx eax, byte [eax]
mov edi, dword [esi + eax*4]
lea eax, [ecx + ecx*2]
mov dword [esi], ecx
sub edi, 0x19f2
mov esi, dword [esi + eax*4]
mov eax, dword [0x10165110]
push dword [0x10165108]
mov edx, dword [edx + eax*4 + 0x34]
mov eax, dword [0x10165134]
sub edx, dword [esp + 0x20]
movzx ecx, byte [ecx + eax]
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + 0x1018]
or ax, word [esp + 0x28]
movzx eax, ax
push eax
push ecx
push edx
push dword [esp + 0x2c]
push esi
push edi
push ebx
mov ebx, dword [esp + 0x3c]
mov eax, ebx
xor eax, 0xa5a
push eax
push ebp
push dword [esp + 0x78]
push dword [esp + 0x54]
call fcn.10002db0
mov ecx, dword [esp + 0x44]
add esp, 0x30
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov dword [esp + 0x14], esi
mov dword [edx + ecx*4 + 0x20], eax
xor edx, edx
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x6abc]
or eax, dword [0x10165128]
add ebx, eax
movzx eax, byte [esp + 0x48]
mov dword [esp + 0x1c], ebx
mov bl, byte [esp + 0x13]
movzx ecx, byte [eax + ebp + 0x13]
movzx eax, bl
xor eax, 0x78b
div ecx
or dword [0x10165148], eax
dec bl
mov byte [esp + 0x13], bl
mov ebx, dword [esp + 0x4c]
xor edx, edx
mov edi, dword [esi]
mov ecx, dword [0x10165110]
push 0x1737
mov eax, dword [ebx]
movzx ecx, byte [ecx + ebp]
mov esi, dword [esi + eax*4]
mov eax, dword [esp + 0x38]
mov eax, dword [eax + edi*4]
or eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x24]
sub eax, dword [0x10165128]
div esi
mov eax, dword [0x10165120]
mov dword [eax + edi*4], edx
mov eax, dword [0x10165128]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
add dword [esp + 0x18], 4
movzx eax, byte [eax + ebp]
mov dword [0x10165138], eax
imul eax, dword [0x1016514c], 0x78b
mov dword [esp + 0x30], eax
mov eax, dword [edx]
mov ecx, dword [ecx + eax*4 + 0x74]
dec eax
mov dword [edx], eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x50], ecx
lea esi, [eax*4]
mov ecx, dword [esi + ebx]
movzx eax, byte [eax + edx]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x40]
movzx ebp, byte [ecx + ebp]
inc ecx
mov dword [esp + 0x40], ecx
movzx ecx, byte [ecx + edx + 0x16]
xor edx, edx
div ecx
mov eax, dword [0x10165150]
mov ebx, edx
xor edx, edx
mov esi, dword [eax + esi]
mov eax, dword [0x10165110]
lea eax, [eax + eax*2]
mov ecx, dword [eax*4 + 0x252a]
mov eax, dword [0x1016510c]
dec eax
mov dword [0x1016510c], eax
div dword [edi + 0x5ef0]
movzx edi, word [0x1016513c]
movzx eax, ax
push eax
push ecx
push esi
push edi
push ebx
push dword [0x10165114]
push ebp
push dword [esp + 0x3c]
push dword [esp + 0x64]
push dword [esp + 0x74]
push dword [esp + 0x58]
call fcn.10002db0
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x68]
movzx ecx, byte [ecx]
mov word [edx + ecx*2], ax
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
mov eax, dword [edx + ecx*4]
imul eax, dword [esp + 0x80]
mov dword [edx + ecx*4], eax
movzx eax, byte [esp + 0x43]
dec dword [0x101650f4]
xor eax, dword [0x101650f8]
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x44]
mov ebx, dword [0x10165130]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + eax*4 + 0x40]
mov ecx, dword [0x10165138]
mov dword [esp + 0x68], eax
dec ecx
mov eax, dword [0x10165108]
or eax, 0x1ce
mov dword [0x10165138], ecx
mov dword [esp + 0x70], eax
mov al, byte [esp + 0x78]
dec al
movzx eax, al
cdq
idiv ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x44]
mov ecx, dword [edx]
movzx ebp, byte [ecx + eax]
mov eax, dword [esp + 0x84]
movzx esi, byte [ecx + 0x2ca]
mov edi, dword [eax + 0x53e8]
mov eax, dword [0x10165148]
add edi, 0x78b
xor esi, dword [edx + eax*4]
mov eax, dword [0x10165140]
mov edx, dword [esp + 0x80]
dec eax
add edx, eax
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov ecx, dword [esp + 0x48]
movzx ecx, byte [eax + ecx]
movzx eax, byte [eax + 0x2d2]
add cx, ax
movzx eax, cx
push eax
push edx
push esi
push edi
push ebx
push ebp
push dword [esp + 0x90]
push dword [esp + 0x8c]
push dword [esp + 0x88]
push dword [esp + 0xa0]
call fcn.10003b00
mov ebx, dword [esp + 0x94]
add esp, 0x58
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov dword [0x10165110], eax
lea eax, [ebx + ebx*2]
dec ebx
mov eax, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], ebx
movzx eax, byte [eax + ecx*4]
mov dword [esp + 0x38], eax
mov eax, 0x729
cdq
idiv dword [0x10165148]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + ebx*2]
lea ebx, [ecx + 1]
mov dword [esi], ebx
mov ecx, dword [0x10165124]
mov ebp, dword [0x1016514c]
mov dword [esp + 0x34], eax
movzx eax, byte [ebx + ecx + 0x14]
xor eax, ebp
mov dword [esp + 0x48], eax
lea ecx, [ebx + ebx*2]
movzx eax, word [0x1016513c]
mov edi, 0xf43
sub edi, eax
mov al, byte [esp + 0x13]
inc al
movzx edx, al
mov eax, dword [0x10165120]
imul edx, dword [eax + ecx*4 + 4]
mov eax, dword [0x10165154]
movzx ecx, word [0x1016513c]
movzx eax, word [eax + ebx*4]
imul eax, ecx
movzx eax, ax
push eax
push ebp
push edx
push edi
push dword [esp + 0x58]
push dword [esp + 0x48]
push dword [esp + 0x68]
push dword [esp + 0x5c]
push dword [esp + 0x58]
push dword [esp + 0x70]
call fcn.10003b00
mov ecx, dword [esp + 0x64]
add esp, 0x28
mov edx, dword [esp + 0x54]
pop edi
mov dword [edx + ecx*4 + 0x54], eax
mov ax, word [0x1016513c]
inc ax
movzx ecx, ax
mov word [0x1016513c], ax
mov eax, dword [esp + 0x40]
movzx eax, byte [eax]
mov dword [eax*4 + 0x252a], ecx
mov ecx, esi
pop esi
pop ebp
pop ebx
mov eax, dword [ecx]
mov ecx, dword [esp + 0x48]
movzx eax, byte [eax + ecx]
add esp, 0x20
ret