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

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x58]
mov eax, 1
push ebp
push esi
push edi
mov esi, dword [ebx + 8]
mov ecx, esi
mov edx, dword [ebx + 0x18]
shl eax, cl
shl edx, cl
mov edi, dword [ebx + 4]
add edx, 3
mov ebp, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x54], eax
sar eax, 1
sar edx, 2
add edx, eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x68]
shr eax, cl
sar edx, cl
mov ecx, dword [esp + 0x80]
sub edx, eax
mov dword [esp + 0x14], edx
mov edx, 1
mov eax, edx
mov dword [esp + 0x28], esi
shl eax, cl
mov ecx, esi
sar eax, cl
mov ecx, dword [esp + 0x14]
cmp ecx, eax
mov dword [esp + 0x38], ebp
cmovge ecx, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], ecx
mov ecx, edi
mov edi, dword [esp + 0x5c]
shl ebx, cl
add ebx, 3
shl edx, cl
sar ebx, 2
shr eax, cl
sar edx, 1
add ebx, edx
sar ebx, cl
sub ebx, eax
mov eax, 0x20
sar eax, cl
mov ecx, esi
cmp ebx, eax
cmovge ebx, eax
mov eax, dword [edi + 0x204]
mov dword [esp + 0x30], ebx
xor ebx, ebx
shl eax, cl
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x30], ebx
jle 0x10126cb6
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x78]
shl eax, cl
add eax, dword [esp + 0x68]
mov dword [esp + 0x48], eax
mov eax, esi
or eax, dword [esp + 0x68]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x70]
shl ebx, cl
mov ecx, dword [esp + 0x6c]
add ecx, ebx
mov dword [esp + 0x3c], 0x40
mov byte [eax], 0
mov eax, ecx
or eax, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x204]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x40], eax
add ecx, eax
cmp dword [esp + 0x60], 0
mov eax, dword [edi + 0x1fc]
mov edi, dword [eax + ecx*4]
lea ebx, [eax + ecx*4]
je 0x10126699
movzx eax, byte [edi + 0x9f]
mov ebp, dword [esp + 0x60]
and eax, 7
cmp dword [ebp + eax*4 + 0x1a9c], 0
mov ebp, dword [esp + 0x38]
je 0x10126699
xor al, al
mov byte [esp + 0x80], al
jmp 0x10126730
test edx, edx
jne 0x10126711
mov al, byte [edi + 0x89]
mov byte [esp + 0x80], al
mov al, byte [edi + 0x9f]
test al, al
js 0x101266b9
cmp byte [edi + 0x14], dl
jle 0x10126729
cmp byte [edi + 0x88], 0
jne 0x10126729
mov edx, dword [edi]
movzx esi, byte [edx + 0x10723118]
movzx ecx, byte [edx + 0x10723960]
dec esi
and esi, dword [esp + 0x34]
movzx eax, byte [edx + 0x10723100]
sar esi, cl
dec eax
movzx ecx, byte [edx + 0x10723978]
and eax, dword [esp + 0x40]
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 + 0x28]
mov byte [esp + 0x80], al
jmp 0x10126730
push esi
push dword [esp + 0x24]
push dword [edi]
call fcn.10127f60
add esp, 0xc
mov byte [esp + 0x80], al
jmp 0x10126730
mov al, byte [esp + 0x80]
cmp dword [esp + 0x68], 0
mov ecx, dword [esp + 0x74]
mov byte [ecx], al
je 0x101268b2
mov eax, dword [esp + 0x44]
shl eax, 2
sub ebx, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x54]
cmp dword [esp + 0x60], 0
mov dword [esp + 0x50], eax
mov ebx, dword [ebx]
je 0x10126786
movzx eax, byte [ebx + 0x9f]
mov ebp, dword [esp + 0x60]
and eax, 7
cmp dword [ebp + eax*4 + 0x1a9c], 0
mov ebp, dword [esp + 0x38]
je 0x10126786
xor dl, dl
mov byte [esp + 0x13], dl
jmp 0x10126806
test edx, edx
jne 0x101267f1
mov al, byte [ebx + 0x9f]
mov dl, byte [ebx + 0x89]
mov byte [esp + 0x13], dl
test al, al
js 0x101267a4
cmp byte [ebx + 0x14], 0
jle 0x10126806
cmp byte [ebx + 0x88], 0
jne 0x10126806
mov edx, dword [ebx]
movzx esi, byte [edx + 0x10723118]
movzx ecx, byte [edx + 0x10723960]
dec esi
and esi, dword [esp + 0x50]
movzx eax, byte [edx + 0x10723100]
sar esi, cl
dec eax
movzx ecx, byte [edx + 0x10723978]
and eax, dword [esp + 0x40]
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 0x10126806
push esi
push dword [esp + 0x24]
push dword [ebx]
call fcn.10127f60
add esp, 0xc
mov byte [esp + 0x13], al
mov dl, al
movzx ecx, dl
push edi
push dword [esp + 0x7c]
mov eax, dword [ecx*4 + 0x10723310]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x64]
push 1
lea esi, [eax + 0x26f0]
push esi
push eax
call fcn.10127e00
mov dl, al
add esp, 0x14
test dl, dl
jne 0x1012684b
push ebx
push dword [esp + 0x7c]
push 1
push esi
push dword [esp + 0x6c]
call fcn.10127e00
add esp, 0x14
mov dl, al
cmp ebx, edi
jne 0x10126868
cmp byte [edi + 0x88], 0
je 0x10126868
mov al, byte [edi + 0x9f]
test al, al
js 0x101268ab
cmp byte [edi + 0x14], 0
jg 0x101268ab
mov edi, dword [esp + 0x5c]
test dl, dl
je 0x101268a2
movzx eax, byte [esp + 0x80]
imul ecx, eax, 0x13
movzx eax, byte [esp + 0x13]
add ecx, eax
mov eax, dword [ecx*4 + 0x10724d30]
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 0x101268b6
mov al, byte [esp + 0x80]
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x28]
movzx eax, al
mov ebx, dword [eax*4 + 0x10723310]
mov al, byte [esi]
cmp dword [esp + 0x3c], ebx
mov byte [esp + 0x80], al
cmovl ebx, dword [esp + 0x3c]
movzx eax, al
mov edx, dword [eax*4 + 0x10723400]
mov eax, edx
shl eax, cl
add esi, edx
mov ecx, dword [esp + 0x68]
add ecx, eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x70]
mov dword [esp + 0x3c], ecx
lea eax, [eax + edx*8]
cmp ecx, dword [esp + 0x48]
jae 0x10126af7
mov edx, dword [esp + 0x2c]
mov ebp, eax
or edx, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x40], ebx
nop dword [eax + eax]
mov ebx, dword [esp + 0x28]
mov eax, ecx
mov byte [ebp], 0
or eax, ebx
mov ecx, dword [edi + 0x204]
imul ecx, eax
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x1fc]
add ecx, edx
cmp dword [esp + 0x60], 0
mov edi, dword [eax + ecx*4]
lea edx, [eax + ecx*4]
mov dword [esp + 0x4c], edx
je 0x10126975
movzx eax, byte [edi + 0x9f]
mov esi, dword [esp + 0x60]
and eax, 7
cmp dword [esi + eax*4 + 0x1a9c], 0
mov esi, dword [esp + 0x18]
je 0x10126975
xor bl, bl
jmp 0x101269f4
cmp dword [esp + 0x78], 0
jne 0x101269e3
mov al, byte [edi + 0x9f]
mov bl, byte [edi + 0x89]
test al, al
js 0x10126992
cmp byte [edi + 0x14], 0
jle 0x101269f4
cmp byte [edi + 0x88], 0
jne 0x101269f4
mov edx, dword [edi]
movzx esi, byte [edx + 0x10723118]
movzx ecx, byte [edx + 0x10723960]
dec esi
and esi, dword [esp + 0x50]
movzx eax, byte [edx + 0x10723100]
sar esi, cl
dec eax
movzx ecx, byte [edx + 0x10723978]
and eax, dword [esp + 0x2c]
shl esi, cl
movzx ecx, byte [edx + 0x10723948]
mov edx, dword [esp + 0x4c]
sar eax, cl
add esi, edi
mov bl, byte [eax + esi + 0x8a]
mov esi, dword [esp + 0x18]
jmp 0x101269f4
push ebx
push dword [esp + 0x24]
push dword [edi]
call fcn.10127f60
add esp, 0xc
mov bl, al
mov ecx, dword [esp + 0x44]
push edi
push dword [esp + 0x7c]
mov byte [esi], bl
lea eax, [ecx*4]
mov ecx, dword [esp + 0x64]
sub edx, eax
push 1
lea eax, [ecx + 0x26f0]
mov esi, dword [edx]
push eax
push ecx
call fcn.10127e00
mov dl, al
add esp, 0x14
test dl, dl
jne 0x10126a43
mov ecx, dword [esp + 0x5c]
push esi
push dword [esp + 0x7c]
push 1
lea eax, [ecx + 0x26f0]
push eax
push ecx
call fcn.10127e00
add esp, 0x14
mov dl, al
cmp esi, edi
jne 0x10126a60
cmp byte [edi + 0x88], 0
je 0x10126a60
mov al, byte [edi + 0x9f]
test al, al
js 0x10126a97
cmp byte [edi + 0x14], 0
jg 0x10126a97
mov edi, dword [esp + 0x5c]
test dl, dl
je 0x10126a9b
movzx eax, bl
imul ecx, eax, 0x13
movzx eax, byte [esp + 0x80]
add ecx, eax
mov eax, dword [ecx*4 + 0x10724d30]
mov byte [ebp], al
movzx eax, dl
lea eax, [eax + eax*2]
shl eax, 4
add eax, 0x26f0
add eax, edi
mov dword [ebp + 4], eax
jmp 0x10126a9b
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
movzx eax, bl
mov ebx, dword [esp + 0x40]
mov eax, dword [eax*4 + 0x10723310]
cmp ebx, eax
cmovge ebx, eax
mov al, byte [esi]
mov byte [esp + 0x80], al
movzx eax, al
mov dword [esp + 0x40], ebx
mov edx, dword [eax*4 + 0x10723400]
mov eax, edx
shl eax, cl
add esi, edx
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x18], esi
lea ebp, [ebp + edx*8]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
cmp ecx, dword [esp + 0x48]
jb 0x10126920
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x70]
xor al, al
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x30]
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], 0
test al, 3
jne 0x10126b41
add eax, 3
cmp eax, esi
jge 0x10126b3d
cmp ebx, 0x10
jl 0x10126b3d
mov bl, 2
mov dword [esp + 0x40], 3
mov byte [esp + 0x24], bl
jmp 0x10126b5d
mov eax, dword [esp + 0x1c]
test al, 1
jne 0x10126b5d
inc eax
cmp eax, esi
jge 0x10126b5d
cmp ebx, 8
jl 0x10126b5d
mov al, 1
mov dword [esp + 0x40], 1
mov byte [esp + 0x24], al
mov ebx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x3c], eax
test ebx, ebx
jle 0x10126c97
nop
cmp byte [ecx], 0xff
jne 0x10126b7b
mov byte [edx], 0
mov byte [ecx], 0
mov ecx, eax
mov eax, dword [esp + 0x64]
imul ecx, ebp
add ecx, dword [esp + 0x1c]
shl ecx, 2
cmp byte [esp + 0x7c], 0
je 0x10126f3b
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x544]
add edx, ecx
mov eax, dword [edi + 0x3bb8]
add ebx, ecx
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
cmp byte [eax + 0x4c], 0
mov ecx, dword [eax + 0x48]
mov esi, dword [edi + 4]
mov dword [esp + 0x80], ecx
je 0x10126e08
lea eax, [ebx + ebx]
add edx, edx
mov bl, byte [esp + 0x24]
mov dword [esp + 0x18], eax
mov al, byte [edi]
mov dword [esp + 0x4c], edx
movzx eax, al
cmp bl, 2
jne 0x10126d2b
sub eax, 4
je 0x10126cbe
sub eax, 2
jne 0x10126c60
push ecx
lea edi, [esi + 0x20]
push edi
lea ebx, [esi + 0x10]
push ebx
push esi
push edi
push ebx
push esi
push ebp
push edx
call dword [0x10b487b4]
push dword [esp + 0xa4]
mov eax, dword [esp + 0x74]
push edi
push ebx
push esi
push edi
push ebx
push esi
add eax, 0x10
push ebp
push eax
call dword [0x10b487b4]
add esp, 0x48
push dword [esp + 0x80]
push edi
push ebx
push esi
push edi
push ebx
push esi
push ebp
push dword [esp + 0x38]
call dword [0x10b487b4]
push dword [esp + 0xa4]
mov eax, dword [esp + 0x40]
push edi
push ebx
push esi
push edi
push ebx
push esi
push ebp
add eax, 0x10
push eax
call dword [0x10b487b4]
add esp, 0x48
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
movzx eax, byte [ecx]
mov eax, dword [eax*4 + 0x10723400]
add ecx, eax
add dword [esp + 0x3c], eax
mov dword [esp + 0x50], ecx
lea edx, [edx + eax*8]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], edx
cmp eax, ebx
jl 0x10126b70
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x78]
inc ebx
add ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
cmp ebx, dword [esp + 0x30]
jl 0x10126626
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
push ecx
lea edi, [esi + 0x20]
push edi
lea ebx, [esi + 0x10]
push ebx
push esi
push edi
push ebx
push esi
push ebp
push edx
call dword [0x10b487cc]
push dword [esp + 0xa4]
mov eax, dword [esp + 0x74]
push edi
push ebx
push esi
push edi
push ebx
push esi
add eax, 0x10
push ebp
push eax
call dword [0x10b487cc]
add esp, 0x48
push dword [esp + 0x80]
push edi
push ebx
push esi
push edi
push ebx
push esi
push ebp
push dword [esp + 0x38]
call dword [0x10b487cc]
push dword [esp + 0xa4]
mov eax, dword [esp + 0x40]
push edi
push ebx
push esi
push edi
push ebx
push esi
add eax, 0x10
push ebp
push eax
call dword [0x10b487cc]
jmp 0x10126c5d
cmp bl, 1
jne 0x10126d9c
sub eax, 4
je 0x10126d6a
sub eax, 2
jne 0x10126c60
push ecx
lea edi, [esi + 0x20]
push edi
lea ebx, [esi + 0x10]
push ebx
push esi
push edi
push ebx
push esi
push ebp
push edx
call dword [0x10b487b4]
push dword [esp + 0xa4]
push edi
push ebx
push esi
push edi
push ebx
push esi
push ebp
push dword [esp + 0x5c]
jmp 0x10126c57
push ecx
lea edi, [esi + 0x20]
push edi
lea ebx, [esi + 0x10]
push ebx
push esi
push edi
push ebx
push esi
push ebp
push edx
call dword [0x10b487cc]
push dword [esp + 0xa4]
push edi
push ebx
push esi
push edi
push ebx
push esi
push ebp
push dword [esp + 0x5c]
call dword [0x10b487cc]
jmp 0x10126c5d
sub eax, 4
je 0x10126dd9
sub eax, 2
jne 0x10126c60
push ecx
lea edi, [esi + 0x20]
push edi
lea ebx, [esi + 0x10]
push ebx
push esi
push ebp
push edx
call dword [0x10b487c0]
push dword [esp + 0x98]
push edi
push ebx
push esi
push ebp
push dword [esp + 0x44]
call dword [0x10b487c0]
add esp, 0x30
jmp 0x10126c60
push ecx
lea edi, [esi + 0x20]
push edi
lea ebx, [esi + 0x10]
push ebx
push esi
push ebp
push edx
call dword [0x10b487dc]
push dword [esp + 0x98]
push edi
push ebx
push esi
push ebp
push dword [esp + 0x44]
call dword [0x10b487dc]
add esp, 0x30
jmp 0x10126c60
mov bl, byte [esp + 0x24]
mov al, byte [edi]
movzx eax, al
cmp bl, 2
jne 0x10126e72
sub eax, 4
je 0x10126e4b
sub eax, 2
jne 0x10126c60
lea edi, [esi + 0x20]
push edi
lea ebx, [esi + 0x10]
push ebx
push esi
push ebp
push edx
call dword [0x10b48da8]
push edi
push ebx
push esi
push ebp
push dword [esp + 0x3c]
call dword [0x10b48da8]
add esp, 0x28
jmp 0x10126c60
lea edi, [esi + 0x20]
push edi
lea ebx, [esi + 0x10]
push ebx
push esi
push ebp
push edx
call dword [0x10b48dd4]
push edi
push ebx
push esi
push ebp
push dword [esp + 0x3c]
call dword [0x10b48dd4]
add esp, 0x28
jmp 0x10126c60
cmp bl, 1
jne 0x10126edf
sub eax, 4
je 0x10126eb2
sub eax, 2
jne 0x10126c60
lea edi, [esi + 0x20]
push edi
lea ebx, [esi + 0x10]
push ebx
push esi
push edi
push ebx
push esi
push ebp
push edx
call dword [0x10b48db4]
push edi
push ebx
push esi
push edi
push ebx
push esi
push ebp
push dword [esp + 0x54]
call dword [0x10b48db4]
add esp, 0x40
jmp 0x10126c60
lea edi, [esi + 0x20]
push edi
lea ebx, [esi + 0x10]
push ebx
push esi
push edi
push ebx
push esi
push ebp
push edx
call dword [0x10b48de4]
push edi
push ebx
push esi
push edi
push ebx
push esi
push ebp
push dword [esp + 0x54]
call dword [0x10b48de4]
add esp, 0x40
jmp 0x10126c60
sub eax, 4
je 0x10126f14
sub eax, 2
jne 0x10126c60
lea edi, [esi + 0x20]
push edi
lea ebx, [esi + 0x10]
push ebx
push esi
push ebp
push edx
call dword [0x10b48dc8]
push edi
push ebx
push esi
push ebp
push dword [esp + 0x3c]
call dword [0x10b48dc8]
add esp, 0x28
jmp 0x10126c60
lea edi, [esi + 0x20]
push edi
lea ebx, [esi + 0x10]
push ebx
push esi
push ebp
push edx
call dword [0x10b48dfc]
push edi
push ebx
push esi
push ebp
push dword [esp + 0x3c]
call dword [0x10b48dfc]
add esp, 0x28
jmp 0x10126c60
push dword [esp + 0x24]
mov eax, dword [eax + 0xc]
push dword [edi + 0x3bb8]
add eax, ecx
push edx
push ebp
push eax
call fcn.10128280
add esp, 0x14
jmp 0x10126c68