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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x4c]
xor ecx, ecx
cmp dword [esp + 0x64], 0x10
push ebx
mov ebx, dword [esp + 0x60]
sete cl
push ebp
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, dword [eax]
mov ebp, dword [esp + 0x60]
inc ecx
mov eax, ecx
imul eax, dword [esp + 0x68]
mov edx, eax
mov dword [esp + 0x18], eax
imul eax, ebx
imul edx, ebx
imul eax, esi
mov dword [esp + 0x3c], edi
mov edi, dword [edi + 8]
mov dword [esp + 0x20], edi
imul edi, ecx
push eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], ebx
call dword [sym.imp.MSVCR90.dll_malloc]
mov ecx, dword [esp + 0x60]
add esp, 4
mov dword [esp + 0x48], eax
mov dword [ecx + 0xc], eax
test eax, eax
jne 0x1001163b
pop edi
pop esi
pop ebp
mov dword [0x100a6abc], 0x1006cf68
pop ebx
add esp, 0x48
ret
mov ecx, dword [esp + 0x20]
imul ecx, ebx
mov dword [esp + 0x30], ecx
imul ecx, dword [esp + 0x74]
add ecx, 7
shr ecx, 3
lea edx, [ecx + 1]
imul edx, esi
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
cmp dword [edx], ebx
jne 0x1001168a
cmp dword [edx + 4], esi
jne 0x1001168a
mov edx, dword [esp + 0x5c]
cmp dword [esp + 0x64], edx
je 0x10011694
pop edi
pop esi
pop ebp
mov dword [0x100a6abc], 0x1006e99c
xor eax, eax
pop ebx
add esp, 0x48
ret
mov edx, dword [esp + 0x5c]
cmp dword [esp + 0x64], edx
jb 0x10011676
mov dword [esp + 0x2c], 0
test esi, esi
jbe 0x10011dd1
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov eax, edx
imul eax, ecx
add esi, eax
mov eax, esi
sub eax, ecx
mov dword [esp + 0x5c], eax
movzx eax, byte [ebp]
inc ebp
cmp eax, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x14], eax
jg 0x10011e03
cmp dword [esp + 0x74], 8
jge 0x100116f6
mov edi, dword [esp + 0x68]
imul edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x44]
sub edi, ecx
add esi, edi
mov edi, 1
mov dword [esp + 0x40], ecx
test edx, edx
jne 0x10011705
movzx ecx, byte [eax + 0x100a5b28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x5c]
test edi, edi
jle 0x1001177e
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x10], eax
mov eax, esi
sub eax, ebp
mov ebx, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x14]
cmp edx, 6
ja case.default.0x1001172c
jmp dword [edx*4 + 0x100120dc]
mov edx, dword [esp + 0x10]
mov dl, byte [edx + ebx]
add dl, byte [ebx]
jmp 0x10011773
mov edx, dword [esp + 0x10]
mov dl, byte [edx + ebx]
shr dl, 1
add dl, byte [ebx]
jmp 0x10011773
mov eax, dword [esp + 0x10]
movzx ecx, byte [eax + ebx]
push 0
push ecx
push 0
call fcn.10011560
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x68]
add esp, 0xc
add al, byte [ebx]
mov byte [edx + ebx], al
mov eax, edx
jmp case.default.0x1001172c
mov dl, byte [ebx]
mov byte [eax + ebx], dl
inc ebx
sub dword [esp + 0x28], 1
jne 0x10011723
mov eax, dword [esp + 0x74]
cmp eax, 8
jne 0x100117a7
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x68]
cmp ebx, eax
je 0x10011797
mov byte [esi + ebx], 0xff
add ebp, ebx
add esi, eax
add ecx, eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ecx
jmp 0x100117f1
cmp eax, 0x10
jne 0x100117d5
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x68]
cmp ebx, eax
je 0x100117c1
mov byte [esi + edi], 0xff
mov byte [esi + edi + 1], 0xff
mov edx, dword [esp + 0x18]
add ebp, edi
add esi, edx
add ecx, edx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ecx
jmp 0x100117f5
inc ebp
inc ecx
inc esi
cmp eax, 8
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ecx
jl 0x10011baf
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x18]
cmp ebx, eax
je 0x10011baf
mov eax, dword [esp + 0x14]
cmp eax, 6
ja case.default.0x1001180a
jmp dword [eax*4 + 0x100120f8]
mov eax, dword [esp + 0x6c]
dec eax
cmp eax, 1
jb case.default.0x1001180a
mov dword [esp + 0x28], eax
test edi, edi
jle 0x1001183e
mov ecx, ebp
mov eax, esi
sub ecx, esi
mov dword [esp + 0x5c], edi
mov bl, byte [ecx + eax]
mov byte [eax], bl
inc eax
sub dword [esp + 0x5c], 1
jne 0x10011831
mov byte [esi + edi], 0xff
add ebp, edi
add esi, edx
sub dword [esp + 0x28], 1
jne 0x10011823
jmp case.default.0x1001180a
mov eax, dword [esp + 0x6c]
dec eax
cmp eax, 1
jb case.default.0x1001180a
mov ecx, esi
sub ecx, edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x28], eax
lea esp, [esp]
xor eax, eax
test edi, edi
jle 0x10011898
mov edx, ebp
sub edx, esi
lea ebx, [ebx]
mov ebx, dword [esp + 0x5c]
mov bl, byte [ebx + eax]
lea ecx, [eax + esi]
add bl, byte [edx + ecx]
inc eax
cmp eax, edi
mov byte [ecx], bl
jl 0x10011880
mov edx, dword [esp + 0x18]
add dword [esp + 0x5c], edx
mov byte [esi + edi], 0xff
add ebp, edi
add esi, edx
sub dword [esp + 0x28], 1
jne 0x10011870
jmp case.default.0x1001180a
mov eax, dword [esp + 0x6c]
dec eax
cmp eax, 1
jb case.default.0x1001180a
mov dword [esp + 0x24], eax
test edi, edi
jle 0x100118f9
sub ecx, ebp
mov ebx, esi
mov eax, ebp
mov dword [esp + 0x10], ecx
sub ebx, ebp
mov dword [esp + 0x28], edi
jmp 0x100118e4
mov ecx, dword [esp + 0x10]
mov cl, byte [eax + ecx]
add cl, byte [eax]
inc eax
sub dword [esp + 0x28], 1
mov byte [eax + ebx - 1], cl
jne 0x100118e0
mov ecx, dword [esp + 0x5c]
mov byte [esi + edi], 0xff
add ecx, edx
add ebp, edi
add esi, edx
sub dword [esp + 0x24], 1
mov dword [esp + 0x5c], ecx
jne 0x100118c2
jmp case.default.0x1001180a
mov eax, dword [esp + 0x6c]
dec eax
cmp eax, 1
jb case.default.0x1001180a
mov ebx, esi
sub ebx, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
lea ecx, [ecx]
xor ebx, ebx
mov dword [esp + 0x14], ebx
test edi, edi
jle 0x10011980
sub ecx, ebp
mov dword [esp + 0x10], ecx
mov ecx, esi
sub ecx, ebp
mov eax, ebp
mov dword [esp + 0x1c], ecx
lea ebx, [ebx]
mov ecx, dword [esp + 0x24]
movzx ecx, byte [ecx + ebx]
mov ebx, dword [esp + 0x10]
movzx ebx, byte [eax + ebx]
add ecx, ebx
mov ebx, dword [esp + 0x1c]
sar ecx, 1
add cl, byte [eax]
inc eax
mov byte [eax + ebx - 1], cl
mov ebx, dword [esp + 0x14]
inc ebx
cmp ebx, edi
mov dword [esp + 0x14], ebx
jl 0x10011950
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x24], edx
mov byte [esi + edi], 0xff
add ecx, edx
add ebp, edi
add esi, edx
sub dword [esp + 0x28], 1
mov dword [esp + 0x5c], ecx
jne 0x10011930
jmp case.default.0x1001180a
mov ecx, dword [esp + 0x6c]
dec ecx
cmp ecx, 1
jb case.default.0x1001180a
mov eax, esi
sub eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], ecx
test edi, edi
jle 0x10011a7f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], edx
mov edx, ecx
sub edx, esi
sub ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], edi
jmp 0x100119f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
movzx ebp, byte [ecx + eax]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
movzx ebx, byte [edx + ecx]
movzx edx, byte [eax]
mov ecx, edx
sub ecx, ebp
add ecx, ebx
mov eax, ecx
sub eax, edx
cdq
mov dword [esp + 0x34], ebp
mov ebp, eax
xor ebp, edx
sub ebp, edx
mov eax, ecx
sub eax, ebx
cdq
mov dword [esp + 0x50], ebx
mov ebx, eax
xor ebx, edx
mov eax, ecx
sub eax, dword [esp + 0x34]
sub ebx, edx
cdq
xor eax, edx
sub eax, edx
cmp ebp, ebx
jg 0x10011a4b
cmp ebp, eax
jg 0x10011a4b
mov edx, dword [esp + 0x1c]
movzx eax, byte [edx]
jmp 0x10011a57
cmp ebx, eax
mov eax, dword [esp + 0x50]
jle 0x10011a57
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov dl, byte [ecx]
mov ebx, dword [esp + 0x18]
add dl, al
mov eax, dword [esp + 0x1c]
mov byte [eax + ebx], dl
inc eax
inc ecx
sub dword [esp + 0x38], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
jne 0x100119f0
mov eax, dword [esp + 0x18]
add dword [esp + 0x60], edi
add dword [esp + 0x14], eax
add dword [esp + 0x5c], eax
mov byte [esi + edi], 0xff
add esi, eax
sub dword [esp + 0x3c], 1
jne 0x100119b8
mov ebp, dword [esp + 0x60]
mov edx, eax
jmp case.default.0x1001180a
mov eax, dword [esp + 0x6c]
dec eax
cmp eax, 1
jb case.default.0x1001180a
mov ecx, esi
sub ecx, edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x3c], eax
xor eax, eax
test edi, edi
jle 0x10011aea
mov edx, ebp
sub edx, esi
nop
mov ebx, dword [esp + 0x5c]
mov bl, byte [ebx + eax]
lea ecx, [eax + esi]
shr bl, 1
add bl, byte [edx + ecx]
inc eax
cmp eax, edi
mov byte [ecx], bl
jl 0x10011ad0
mov edx, dword [esp + 0x18]
add dword [esp + 0x5c], edx
mov byte [esi + edi], 0xff
add ebp, edi
add esi, edx
sub dword [esp + 0x3c], 1
jne 0x10011ac5
jmp case.default.0x1001180a
mov eax, dword [esp + 0x6c]
dec eax
cmp eax, 1
jb case.default.0x1001180a
mov ecx, esi
sub ecx, edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x3c], eax
xor ecx, ecx
test edi, edi
jle 0x10011b6a
xor eax, eax
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
mov eax, ebp
sub eax, esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x10], eax
jmp 0x10011b36
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
movzx eax, byte [eax + ecx]
mov dword [esp + 0x38], eax
cdq
xor eax, edx
sub eax, edx
cmp ebx, eax
jg 0x10011b51
mov edx, dword [esp + 0x38]
jmp 0x10011b53
xor edx, edx
mov ebx, dword [esp + 0x10]
lea eax, [ecx + esi]
mov bl, byte [ebx + eax]
add bl, dl
inc ecx
cmp ecx, edi
mov byte [eax], bl
jl 0x10011b32
mov edx, dword [esp + 0x18]
add dword [esp + 0x5c], edx
mov byte [esi + edi], 0xff
add ebp, edi
add esi, edx
sub dword [esp + 0x3c], 1
jne 0x10011b15
cmp dword [esp + 0x74], 0x10
jne 0x10011db2
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jbe 0x10011db2
mov eax, dword [esp + 0x54]
lea eax, [eax + edi + 1]
lea esp, [esp]
mov byte [eax], 0xff
add eax, edx
sub ecx, 1
jne 0x10011ba0
jmp 0x10011db2
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
dec ebx
imul ebx, edi
mov dword [esp + 0x3c], ebx
cmp eax, 6
ja case.default.0x10011bc8
jmp dword [eax*4 + 0x10012114]
push ebx
push ebp
push esi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp case.default.0x10011bc8
xor eax, eax
mov dword [esp + 0x14], eax
test ebx, ebx
jle case.default.0x10011bc8
mov edx, esi
sub edx, edi
mov ecx, ebp
sub ecx, esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x10], ecx
jmp 0x10011c04
mov edx, dword [esp + 0x5c]
mov dl, byte [edx + eax]
lea ecx, [eax + esi]
mov eax, dword [esp + 0x10]
add dl, byte [eax + ecx]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ebx
mov byte [ecx], dl
mov dword [esp + 0x14], eax
jl 0x10011c00
jmp case.default.0x10011bc8
test ebx, ebx
jle case.default.0x10011bc8
sub ecx, ebp
mov eax, ebp
sub esi, ebp
mov dword [esp + 0x5c], ebx
mov dl, byte [ecx + eax]
add dl, byte [eax]
inc eax
sub dword [esp + 0x5c], 1
mov byte [esi + eax - 1], dl
jne 0x10011c37
jmp case.default.0x10011bc8
mov dword [esp + 0x14], 0
test ebx, ebx
jle case.default.0x10011bc8
mov edx, esi
sub edx, edi
sub ecx, ebp
sub esi, ebp
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x14]
mov eax, ebp
mov dword [esp + 0x5c], edx
mov dword [esp + 0x10], ecx
jmp 0x10011c88
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
movzx ecx, byte [ecx + eax]
movzx edx, byte [edx + esi]
add ecx, edx
mov edx, dword [esp + 0x1c]
sar ecx, 1
add cl, byte [eax]
inc esi
mov byte [edx + eax], cl
inc eax
cmp esi, ebx
jl 0x10011c80
jmp case.default.0x10011bc8
test ebx, ebx
jle case.default.0x10011bc8
mov eax, ecx
sub eax, esi
mov ebx, esi
sub ebx, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
sub ecx, ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x5c], eax
mov esi, ebp
mov ecx, dword [esp + 0x28]
movzx edx, byte [ecx + ebx]
mov eax, dword [esp + 0x10]
movzx ecx, byte [eax + esi]
push edx
movzx edx, byte [ebx]
push ecx
push edx
call fcn.10011560
add al, byte [esi]
add esp, 0xc
mov byte [ebx + edi], al
inc ebx
inc esi
sub dword [esp + 0x5c], 1
jne 0x10011cd0
mov ebx, dword [esp + 0x3c]
jmp case.default.0x10011bc8
xor eax, eax
mov dword [esp + 0x14], eax
test ebx, ebx
jle case.default.0x10011bc8
mov edx, esi
sub edx, edi
mov ecx, ebp
sub ecx, esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x10], ecx
jmp 0x10011d29
mov edx, dword [esp + 0x5c]
lea ecx, [eax + esi]
mov al, byte [edx + eax]
mov edx, dword [esp + 0x10]
shr al, 1
add al, byte [edx + ecx]
mov byte [ecx], al
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x10011d25
jmp case.default.0x10011bc8
xor ecx, ecx
test ebx, ebx
jle case.default.0x10011bc8
xor eax, eax
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x3c], eax
mov eax, esi
sub eax, edi
mov dword [esp + 0x5c], eax
mov eax, ebp
sub eax, esi
mov dword [esp + 0x10], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x5c]
movzx eax, byte [eax + ecx]
cdq
xor eax, edx
sub eax, edx
cmp dword [esp + 0x3c], eax
jg 0x10011d91
mov edx, dword [esp + 0x5c]
movzx eax, byte [edx + ecx]
mov dword [esp + 0x38], eax
jmp 0x10011d99
mov dword [esp + 0x38], 0
mov edx, dword [esp + 0x10]
lea eax, [ecx + esi]
mov al, byte [edx + eax]
add al, byte [esp + 0x38]
inc ecx
cmp ecx, ebx
mov byte [ecx + esi - 1], al
jl 0x10011d70
add ebp, ebx
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x70]
jb 0x100116a4
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x74]
cmp edi, 8
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x30]
jge 0x1001209a
test esi, esi
jbe 0x100120ce
imul edx, dword [esp + 0x6c]
sub edx, ecx
add edx, eax
mov ebp, eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x5c], esi
jmp 0x10011e28
pop edi
pop esi
pop ebp
mov dword [0x100a6abc], 0x1006e9b0
xor eax, eax
pop ebx
add esp, 0x48
ret
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x74]
cmp dword [esp + 0x78], 0
mov ecx, ebp
mov esi, edx
jne 0x10011e3b
mov dl, byte [edi + 0x100a5a14]
jmp 0x10011e3d
mov dl, 1
cmp edi, 4
jne 0x10011e7f
cmp ebx, 2
jl 0x10011e6d
mov edi, ebx
shr edi, 1
mov eax, edi
neg eax
lea ebx, [ebx + eax*2]
movzx eax, byte [esi]
shr al, 4
imul dl
mov byte [ecx], al
movzx eax, byte [esi]
and al, 0xf
imul dl
inc ecx
mov byte [ecx], al
inc ecx
inc esi
sub edi, 1
jne 0x10011e52
test ebx, ebx
jle 0x10011fff
mov al, byte [esi]
shr al, 4
jmp 0x10011ffb
cmp edi, 2
jne 0x10011eff
cmp ebx, 4
jl 0x10011ecb
mov edi, ebx
shr edi, 2
mov eax, edi
neg eax
lea ebx, [ebx + eax*4]
movzx eax, byte [esi]
shr al, 6
imul dl
mov byte [ecx], al
movzx eax, byte [esi]
shr al, 4
and al, 3
imul dl
mov byte [ecx + 1], al
movzx eax, byte [esi]
inc ecx
shr al, 2
and al, 3
imul dl
inc ecx
mov byte [ecx], al
movzx eax, byte [esi]
and al, 3
imul dl
inc ecx
mov byte [ecx], al
inc ecx
inc esi
sub edi, 1
jne 0x10011e95
test ebx, ebx
jle 0x10011ed9
mov al, byte [esi]
shr al, 6
imul dl
mov byte [ecx], al
inc ecx
cmp ebx, 1
jle 0x10011eea
mov al, byte [esi]
shr al, 4
and al, 3
imul dl
mov byte [ecx], al
inc ecx
cmp ebx, 2
jle 0x10011fff
mov al, byte [esi]
shr al, 2
and al, 3
jmp 0x10011ffb
cmp edi, 1
jne 0x10011fff
cmp ebx, 8
jl 0x10011f8d
mov edi, ebx
shr edi, 3
mov eax, edi
neg eax
lea ebx, [ebx + eax*8]
lea ecx, [ecx]
movzx eax, byte [esi]
shr al, 7
imul dl
mov byte [ecx], al
movzx eax, byte [esi]
shr al, 6
and al, 1
imul dl
mov byte [ecx + 1], al
movzx eax, byte [esi]
shr al, 5
and al, 1
imul dl
inc ecx
mov byte [ecx + 1], al
movzx eax, byte [esi]
shr al, 4
inc ecx
and al, 1
imul dl
mov byte [ecx + 1], al
movzx eax, byte [esi]
inc ecx
shr al, 3
and al, 1
imul dl
mov byte [ecx + 1], al
movzx eax, byte [esi]
inc ecx
shr al, 2
and al, 1
imul dl
mov byte [ecx + 1], al
movzx eax, byte [esi]
inc ecx
shr al, 1
and al, 1
imul dl
inc ecx
mov byte [ecx], al
movzx eax, byte [esi]
and al, 1
imul dl
inc ecx
mov byte [ecx], al
inc ecx
inc esi
sub edi, 1
jne 0x10011f20
test ebx, ebx
jle 0x10011f9b
mov al, byte [esi]
shr al, 7
imul dl
mov byte [ecx], al
inc ecx
cmp ebx, 1
jle 0x10011fac
mov al, byte [esi]
shr al, 6
and al, 1
imul dl
mov byte [ecx], al
inc ecx
cmp ebx, 2
jle 0x10011fbd
mov al, byte [esi]
shr al, 5
and al, 1
imul dl
mov byte [ecx], al
inc ecx
cmp ebx, 3
jle 0x10011fce
mov al, byte [esi]
shr al, 4
and al, 1
imul dl
mov byte [ecx], al
inc ecx
cmp ebx, 4
jle 0x10011fdf
mov al, byte [esi]
shr al, 3
and al, 1
imul dl
mov byte [ecx], al
inc ecx
cmp ebx, 5
jle 0x10011ff0
mov al, byte [esi]
shr al, 2
and al, 1
imul dl
mov byte [ecx], al
inc ecx
cmp ebx, 6
jle 0x10011fff
mov al, byte [esi]
shr al, 1
and al, 1
imul dl
mov byte [ecx], al
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x68]
je 0x10012072
cmp eax, 1
jne 0x10012034
mov eax, dword [esp + 0x6c]
add eax, 0xffffffff
js 0x10012072
jmp 0x10012020
sub eax, 1
mov byte [ebp + eax*2 + 3], 0xff
mov cl, byte [eax + ebp + 1]
mov byte [ebp + eax*2 + 2], cl
jns 0x10012020
jmp 0x10012072
mov esi, dword [esp + 0x6c]
add esi, 0xffffffff
js 0x10012072
lea edx, [ebp + esi*2]
lea ecx, [esi + edx + 1]
lea eax, [ebp + esi*4 + 2]
lea esp, [esp]
mov byte [eax + 1], 0xff
movzx edx, byte [ecx + 1]
mov byte [eax], dl
movzx edx, byte [ecx]
mov byte [eax - 1], dl
movzx edx, byte [ecx - 1]
mov byte [eax - 2], dl
dec esi
sub ecx, 3
sub eax, 4
test esi, esi
jge 0x10012050
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x4c]
add edx, eax
add ebp, eax
sub dword [esp + 0x5c], 1
mov dword [esp + 0x70], edx
jne 0x10011e20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret
cmp edi, 0x10
jne 0x100120ce
imul edx, dword [esp + 0x6c]
imul edx, esi
mov ecx, eax
test edx, edx
jbe 0x100120ce
lea ecx, [ecx]
movzx si, byte [eax]
movzx di, byte [ecx + 1]
shl si, 8
or si, di
mov word [ecx], si
add ecx, 2
add eax, 2
sub edx, 1
jne 0x100120b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret