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

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x58]
mov edx, 1
push ebp
push esi
push edi
mov edi, dword [ebx + 8]
mov ecx, edi
mov eax, dword [ebx + 0x1c]
mov ebp, dword [ebx + 0x18]
mov esi, dword [ebx + 4]
mov dword [esp + 0x2c], eax
mov eax, edx
shl eax, cl
shl ebp, cl
sar eax, 1
add ebp, 3
sar ebp, 2
add ebp, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x68]
shr eax, cl
sar ebp, cl
mov ecx, dword [esp + 0x80]
sub ebp, eax
shl edx, cl
mov eax, 1
mov ecx, edi
mov dword [esp + 0x1c], edi
sar edx, cl
mov ecx, esi
cmp ebp, edx
mov dword [esp + 0x30], 0
cmovge ebp, edx
mov edx, dword [ebx + 0x14]
shl edx, cl
shl eax, cl
add edx, 3
mov dword [esp + 0x48], eax
sar eax, 1
sar edx, 2
add edx, eax
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x6c]
shr eax, cl
sar edx, cl
sub edx, eax
mov eax, 0x20
sar eax, cl
cmp edx, eax
cmovge edx, eax
mov dword [esp + 0x44], edx
test ebp, ebp
jle 0x10127df5
mov eax, edx
mov ebx, esi
or ebx, dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
shl eax, cl
add eax, dword [esp + 0x6c]
xor ecx, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ebx
nop dword [eax]
mov eax, ecx
mov dword [esp + 0x38], 0x40
mov ecx, edi
shl eax, cl
add eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
mov ebp, eax
mov dword [esp + 0x20], eax
or ebp, edi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x3c], ebp
mov byte [ecx], 0
mov ecx, dword [eax + 0x204]
mov eax, dword [eax + 0x1fc]
imul ecx, ebp
add ecx, ebx
cmp dword [esp + 0x60], 0
mov edi, dword [eax + ecx*4]
lea ebx, [eax + ecx*4]
je 0x10127891
movzx eax, byte [edi + 0x9f]
mov esi, dword [esp + 0x60]
and eax, 7
cmp dword [esi + eax*4 + 0x1a9c], 0
mov esi, dword [esp + 0x14]
je 0x10127891
xor al, al
mov byte [esp + 0x80], al
jmp 0x10127928
test edx, edx
jne 0x10127909
mov al, byte [edi + 0x89]
mov byte [esp + 0x80], al
mov al, byte [edi + 0x9f]
test al, al
js 0x101278b1
cmp byte [edi + 0x14], dl
jle 0x10127921
cmp byte [edi + 0x88], 0
jne 0x10127921
mov edx, dword [edi]
movzx esi, byte [edx + 0x10723118]
movzx ecx, byte [edx + 0x10723960]
dec esi
movzx eax, byte [edx + 0x10723100]
and esi, ebp
mov ebp, dword [esp + 0x18]
dec eax
sar esi, cl
and eax, ebp
movzx ecx, byte [edx + 0x10723978]
shl esi, cl
movzx ecx, byte [edx + 0x10723948]
mov edx, dword [esp + 0x78]
sar eax, cl
add esi, edi
mov al, byte [eax + esi + 0x8a]
mov esi, dword [esp + 0x14]
mov byte [esp + 0x80], al
jmp 0x1012792c
push dword [esp + 0x1c]
push esi
push dword [edi]
call fcn.10127f60
add esp, 0xc
mov byte [esp + 0x80], al
jmp 0x10127928
mov al, byte [esp + 0x80]
mov ebp, dword [esp + 0x18]
cmp dword [esp + 0x6c], 0
mov ecx, dword [esp + 0x74]
mov byte [ecx], al
je 0x10127aa4
sub ebp, dword [esp + 0x48]
mov eax, 4
mov ecx, esi
shl eax, cl
sub ebx, eax
cmp dword [esp + 0x60], 0
mov ebx, dword [ebx]
je 0x1012797c
movzx eax, byte [ebx + 0x9f]
mov esi, dword [esp + 0x60]
and eax, 7
cmp dword [esi + eax*4 + 0x1a9c], 0
mov esi, dword [esp + 0x14]
je 0x1012797c
xor dl, dl
mov byte [esp + 0x13], dl
jmp 0x101279fa
test edx, edx
jne 0x101279e5
mov al, byte [ebx + 0x9f]
mov dl, byte [ebx + 0x89]
mov byte [esp + 0x13], dl
test al, al
js 0x1012799a
cmp byte [ebx + 0x14], 0
jle 0x101279fa
cmp byte [ebx + 0x88], 0
jne 0x101279fa
mov edx, dword [ebx]
movzx esi, byte [edx + 0x10723118]
movzx ecx, byte [edx + 0x10723960]
dec esi
and esi, dword [esp + 0x3c]
movzx eax, byte [edx + 0x10723100]
sar esi, cl
dec eax
movzx ecx, byte [edx + 0x10723978]
and eax, ebp
shl esi, cl
movzx ecx, byte [edx + 0x10723948]
sar eax, cl
add esi, ebx
mov dl, byte [eax + esi + 0x8a]
mov byte [esp + 0x13], dl
jmp 0x101279fa
push dword [esp + 0x1c]
push esi
push dword [ebx]
call fcn.10127f60
add esp, 0xc
mov byte [esp + 0x13], al
mov dl, al
mov eax, dword [esp + 0x5c]
push edi
push dword [esp + 0x7c]
movzx ecx, dl
lea esi, [eax + 0x26f0]
push 0
push esi
mov ebp, dword [ecx*4 + 0x10723360]
push eax
call fcn.10127e00
mov dl, al
add esp, 0x14
test dl, dl
jne 0x10127a3b
push ebx
push dword [esp + 0x7c]
push 0
push esi
push dword [esp + 0x6c]
call fcn.10127e00
add esp, 0x14
mov dl, al
cmp ebx, edi
jne 0x10127a58
cmp byte [edi + 0x88], 0
je 0x10127a58
mov al, byte [edi + 0x9f]
test al, al
js 0x10127a9b
cmp byte [edi + 0x14], 0
jg 0x10127a9b
mov edi, dword [esp + 0x5c]
test dl, dl
je 0x10127a92
movzx eax, byte [esp + 0x80]
imul ecx, eax, 0x13
movzx eax, byte [esp + 0x13]
add ecx, eax
mov eax, dword [ecx*4 + 0x10724788]
mov ecx, dword [esp + 0x70]
mov byte [ecx], al
movzx eax, dl
lea eax, [eax + eax*2]
shl eax, 4
add eax, 0x26f0
add eax, edi
mov dword [ecx + 4], eax
mov al, byte [esp + 0x80]
jmp 0x10127aac
mov al, byte [esp + 0x80]
jmp 0x10127aa8
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
movzx eax, al
mov ebx, dword [eax*4 + 0x10723360]
cmp ebp, ebx
mov al, byte [esi]
mov byte [esp + 0x80], al
cmovl ebx, ebp
movzx eax, al
mov edx, dword [eax*4 + 0x107233b0]
mov ebp, edx
mov eax, dword [esp + 0x70]
shl ebp, cl
add ebp, dword [esp + 0x6c]
lea ecx, [edx + esi]
mov dword [esp + 0x3c], ebp
lea eax, [eax + edx*8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
cmp ebp, dword [esp + 0x40]
jae 0x10127ce4
mov esi, dword [esp + 0x20]
mov edx, 4
or esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
shl edx, cl
lea ecx, [edi + 0x26f0]
mov dword [esp + 0x20], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x14]
or ebp, ebx
mov byte [eax], 0
mov ecx, dword [edi + 0x204]
mov eax, dword [edi + 0x1fc]
mov edi, dword [esp + 0x60]
imul ecx, esi
add ecx, ebp
mov esi, dword [eax + ecx*4]
lea edx, [eax + ecx*4]
mov dword [esp + 0x4c], edx
test edi, edi
je 0x10127b6e
movzx eax, byte [esi + 0x9f]
and eax, 7
cmp dword [edi + eax*4 + 0x1a9c], 0
je 0x10127b6e
xor bl, bl
jmp 0x10127be7
cmp dword [esp + 0x78], 0
jne 0x10127bd6
mov al, byte [esi + 0x9f]
mov bl, byte [esi + 0x89]
test al, al
js 0x10127b8b
cmp byte [esi + 0x14], 0
jle 0x10127be7
cmp byte [esi + 0x88], 0
jne 0x10127be7
mov edx, dword [esi]
movzx edi, byte [edx + 0x10723118]
movzx ecx, byte [edx + 0x10723960]
dec edi
and edi, dword [esp + 0x20]
movzx eax, byte [edx + 0x10723100]
sar edi, cl
dec eax
movzx ecx, byte [edx + 0x10723978]
and eax, ebp
shl edi, cl
movzx ecx, byte [edx + 0x10723948]
mov edx, dword [esp + 0x4c]
sar eax, cl
add edi, esi
mov bl, byte [eax + edi + 0x8a]
jmp 0x10127be7
push dword [esp + 0x1c]
push ebx
push dword [esi]
call fcn.10127f60
add esp, 0xc
mov bl, al
mov eax, dword [esp + 0x28]
sub edx, dword [esp + 0x50]
mov ebp, dword [esp + 0x5c]
push esi
push dword [esp + 0x7c]
mov byte [eax], bl
mov edi, dword [edx]
push 0
push dword [esp + 0x60]
push ebp
call fcn.10127e00
mov dl, al
add esp, 0x14
test dl, dl
jne 0x10127c2a
push edi
push dword [esp + 0x7c]
lea eax, [ebp + 0x26f0]
push 0
push eax
push ebp
call fcn.10127e00
add esp, 0x14
mov dl, al
cmp edi, esi
jne 0x10127c47
cmp byte [esi + 0x88], 0
je 0x10127c47
mov al, byte [esi + 0x9f]
test al, al
js 0x10127c7f
cmp byte [esi + 0x14], 0
jg 0x10127c7f
mov edi, ebp
test dl, dl
je 0x10127c81
movzx eax, bl
imul ecx, eax, 0x13
movzx eax, byte [esp + 0x80]
add ecx, eax
mov eax, dword [ecx*4 + 0x10724788]
mov ecx, dword [esp + 0x24]
mov byte [ecx], al
movzx eax, dl
lea eax, [eax + eax*2]
shl eax, 4
add eax, 0x26f0
add eax, edi
mov dword [ecx + 4], eax
jmp 0x10127c81
mov edi, ebp
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x3c]
movzx eax, bl
mov ebx, dword [esp + 0x38]
mov eax, dword [eax*4 + 0x10723360]
cmp ebx, eax
cmovge ebx, eax
mov al, byte [esi]
mov byte [esp + 0x80], al
movzx eax, al
mov dword [esp + 0x38], ebx
mov edx, dword [eax*4 + 0x107233b0]
mov eax, edx
shl eax, cl
add esi, edx
add ebp, eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x3c], ebp
lea eax, [eax + edx*8]
mov dword [esp + 0x24], eax
cmp ebp, dword [esp + 0x40]
jb 0x10127b27
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
xor edx, edx
mov edi, dword [esp + 0x70]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x80], edx
mov dword [esp + 0x28], edx
test cl, 3
jne 0x10127d1d
lea eax, [ecx + 3]
cmp eax, ebp
jge 0x10127d1d
cmp ebx, 0x10
jl 0x10127d1d
mov edx, 2
mov dword [esp + 0x28], 3
jmp 0x10127d37
test cl, 1
jne 0x10127d3e
lea eax, [ecx + 1]
cmp eax, ebp
jge 0x10127d3e
cmp ebx, 8
jl 0x10127d3e
mov edx, 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x80], edx
xor ebx, ebx
cmp dword [esp + 0x44], ebx
jle 0x10127dd0
mov ebp, ecx
imul ebp, dword [esp + 0x2c]
cmp byte [esi], 0xff
jne 0x10127d5c
mov byte [edi], 0
mov byte [esi], 0
mov al, dl
lea ecx, [ebx + ebp]
mov edx, dword [esp + 0x5c]
push eax
shl ecx, 2
cmp byte [esp + 0x80], 0
mov edx, dword [edx + 0x3bb8]
push edx
push edi
push dword [esp + 0x38]
je 0x10127d9c
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x544]
add eax, ecx
push eax
mov eax, dword [edx + 0xc]
add eax, ecx
push eax
call fcn.10128c40
add esp, 0x18
jmp 0x10127dae
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 0xc]
add eax, ecx
push eax
call fcn.10128760
add esp, 0x14
movzx eax, byte [esi]
mov edx, dword [esp + 0x80]
mov eax, dword [eax*4 + 0x107233b0]
add ebx, eax
add esi, eax
lea edi, [edi + eax*8]
cmp ebx, dword [esp + 0x44]
jl 0x10127d51
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x78]
inc eax
mov esi, dword [esp + 0x14]
add ecx, eax
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0x34]
jl 0x10127820
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret