Function at 0x10022341
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100765fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
push 2
pop esi
mov dword [esp + 0x10], esi
xor edi, edi
mov dword [esp + 0x20], 0xf5ebec5
inc edi
mov dword [esp + 0x34], 0x8a52b4b5
xor ebx, ebx
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x1c], 5
mov dword [esp + 0x24], 0xfffffff6
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x70], edx
call fcn.1001ae5e
mov dword [esp + 0x14], ebx
jmp 0x100223c2
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xa4]
mov dword [eax + ecx*4], edi
inc dword [esp + 0x14]
cmp dword [esp + 0x14], edi
jl 0x100223b0
cmp dword [esp + 0x10], ebx
je 0x10022481
mov dword [esp + 0x1c], 0x8d020bd2
mov dword [esp + 0x28], 0x695cd1d2
mov dword [esp + 0x2c], 0x670fc244
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
neg ecx
sbb ecx, ecx
xor edx, edx
inc ecx
cmp eax, ecx
setl dl
xor ecx, ecx
add edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp edx, eax
setle cl
cmp ecx, dword [esp + 0x1c]
je 0x1002242b
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, 0xffff
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
sbb eax, eax
neg eax
cmp eax, 0x305aba9a
jge 0x1002245b
cmp dword [esp + 0x2c], ebx
jne 0x10022463
mov edx, ebx
cmp dword [esp + 0x10], ebx
je 0x10022465
mov edx, edi
mov eax, dword [esp + 0x28]
xor ecx, ecx
cmp edx, eax
setl cl
sub ecx, 0xfffffffd
neg ecx
sbb ecx, ecx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x10022551
mov dword [esp + 0x28], 0xfffffffd
mov dword [esp + 0x20], 0xdad8be77
mov dword [esp + 0x10], ebx
jmp 0x1002250b
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], 0xb395b91
cmp dword [esp + 0x34], ebx
jne 0x100224b1
mov edx, ebx
cmp dword [esp + 0x28], ebx
je 0x100224b3
mov edx, edi
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
cmp edx, eax
mov eax, dword [esp + 0x14]
setle cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x14]
setl dl
xor ecx, ecx
cmp edx, eax
setge cl
sub ecx, 6
mov dword [esp + 0x2c], ecx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x3a
jle 0x10022497
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x24], ebx
jl 0x10022551
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx + eax*4]
mov dword [ecx + edx*4], eax
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], bl
je 0x1002254b
push 0x14dd
push 0x18e5
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
dec dword [esp + 0x24]
jns 0x1002251c
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], bl
je 0x10022563
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
lea ecx, [esp + 0xa4]
call fcn.1001b9e4
push 3
pop esi
mov dword [esp + 0x14], edi
lea ecx, [esp + 0xc8]
mov dword [esp + 0x2c], edi
push esi
call fcn.1001ae5e
mov eax, 0xbf495e3b
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], ebx
jmp 0x100225c8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc8]
mov dword [eax + ecx*4], 0xfffffffc
inc dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jl 0x100225b2
mov dword [esp + 0x10], ebx
jmp 0x100225e7
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x108], 0x75ee4c20
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x100225d4
mov dword [esp + 0x14], 0xec2e0cf5
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc8]
mov dword [eax + 8], ecx
lea eax, [ecx + 0x5cc48b16]
xor ecx, ecx
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x14]
cmp eax, 7
mov eax, dword [esp + 0x14]
setne cl
xor edx, edx
cmp ecx, 0xd329b3a0
setne dl
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0xc8]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x110], eax
call fcn.1001b9e4
mov dword [esp + 0x30], 0xa32b1cec
mov dword [esp + 0x1c], 0xa8eac8b1
mov dword [esp + 0x1c], ebx
jmp 0x100226b6
push esi
lea ecx, [esp + 0x9c]
call fcn.1001ae5e
mov dword [esp + 0x14], ebx
jmp 0x10022695
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x98]
mov dword [eax + ecx*4], 0xd688
inc dword [esp + 0x14]
cmp dword [esp + 0x14], esi
jl 0x1002267f
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x98]
cmp dword [eax], ebx
jne 0x100226bf
call fcn.1001b9e4
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0xc
jl 0x1002266c
jmp 0x100226c4
call fcn.1001b9e4
mov dword [esp + 0x34], 0x64f16efa
mov dword [esp + 0x14], ebx
jmp 0x100226e2
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x44], 0xac204e2d
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jl 0x100226d2
mov dword [esp + 0x44], ebx
jmp 0x100227c6
push 4
pop esi
mov dword [esp + 0x28], eax
lea ecx, [esp + 0xd4]
push esi
call fcn.1001ae5e
mov dword [esp + 0x1c], 0x188
mov dword [esp + 0x20], 0xf9986e3e
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], ebx
jmp 0x10022736
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xd4]
mov dword [eax + ecx*4], 0xfffffff6
inc dword [esp + 0x14]
cmp dword [esp + 0x14], esi
jl 0x10022720
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0xd4]
neg esi
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x44]
sbb esi, esi
xor ecx, ecx
neg esi
imul eax, dword [edx + 8]
cmp eax, esi
mov eax, dword [esp + 0x28]
setge cl
mov dword [edx + 8], ecx
add eax, ecx
jne 0x10022777
mov ecx, ebx
cmp dword [esp + 0x20], ebx
je 0x10022779
mov ecx, edi
mov eax, dword [esp + 0x44]
xor edx, edx
add ecx, eax
mov eax, dword [esp + 0x1c]
cmp ecx, eax
setge dl
sub edx, 5
mov dword [esp + 0x2c], edx
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], bl
je 0x100227b6
push 0x2104
push ebx
push 0x1628
push 0x1c8e
push 0x20ba
call dword [sym.imp.GDI32.dll_ExtFloodFill]
lea ecx, [esp + 0xd4]
call fcn.1001b9e4
inc dword [esp + 0x44]
cmp dword [esp + 0x44], 7
push 0xffffffffffffffff
pop eax
je 0x100226f2
mov esi, dword [sym.imp.USER32.dll_ShowOwnedPopups]
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], bl
je 0x100227ec
push edi
push 0x1cad
call esi
mov dword [esp + 0x2c], 0xbf9cc53a
lea ecx, [esp + 0x80]
push 3
call fcn.1001ae5e
mov dword [esp + 0x14], 0x62b000cd
push 3
mov dword [esp + 0x24], 0xcbe9
mov dword [esp + 0x14], ebx
pop edx
jmp 0x10022831
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x80]
mov dword [eax + ecx*4], 7
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edx
jl 0x1002281b
mov dword [esp + 0x10], ebx
jmp 0x10022849
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x70], edx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edx
jl 0x1002283d
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], bl
je 0x10022861
push edi
push 0x1cad
call esi
cmp dword [esp + 0x14], ebx
jne 0x10022877
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x28], ecx
cmp dword [ecx + 8], ebx
je 0x10022886
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x28], ecx
xor eax, eax
cmp dword [ecx + 8], edi
setge al
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x74], ebx
je 0x100228c1
mov dword [esp + 0x2c], 0x6370
mov dword [esp + 0x2c], edi
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], bl
je 0x100228b8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
dec dword [esp + 0x20]
jmp 0x10022956
mov dword [esp + 0x24], 0x3d478254
mov ecx, ebx
mov dword [esp + 0x2c], edi
cmp dword [esp + 0x24], ebx
je 0x100228d7
mov ecx, edi
mov eax, dword [esp + 0x80]
mov esi, dword [eax + 4]
imul esi, ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
sub esi, 0x4ed383de
neg esi
sbb esi, esi
xor edx, edx
inc esi
cmp ecx, eax
mov eax, dword [esp + 0x70]
setg dl
imul ecx, edx, 0xbd53
xor edx, edx
cmp ecx, eax
setne dl
xor eax, eax
cmp esi, edx
setle al
cmp eax, dword [esp + 0x14]
jg 0x10022927
mov eax, dword [esp + 0x28]
mov edx, ebx
cmp dword [eax + 8], ebx
je 0x10022929
mov edx, edi
mov eax, dword [esp + 0x78]
xor ecx, ecx
cmp edx, eax
setne cl
mov dword [esp + 0x74], ecx
cmp dword [esp + 0x24], ebx
je 0x10022942
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x80]
call fcn.1001b9e4
mov dword [esp + 0x14], ebx
jmp 0x10022978
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x38], 0x841b
inc dword [esp + 0x14]
cmp dword [esp + 0x14], edi
jl 0x10022968
mov dword [esp + 0x30], ebx
jmp 0x10022c54
mov dword [esp + 0x10], 0x9ad59e57
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0xc5764361
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x14], 3
jge 0x100229b4
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x4c], esi
inc dword [esp + 0x14]
jmp 0x1002299f
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], 2
jg 0x10022a2f
mov edi, 0xffff
mov eax, dword [esp + 0x10]
cmp dword [esp + eax*4 + 0x4c], ebx
je 0x10022a0c
mov eax, dword [esp + 0x10]
cmp dword [esp + eax*4 + 0x4c], edi
je 0x100229f4
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x4c]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x4c]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x4c]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x4c]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x4c]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x4c]
mov eax, dword [esp + 0x50]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jle 0x100229c4
xor edi, edi
inc edi
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10022a46
push ebx
push 0x351
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], 0xeb6b9dd9
mov dword [esp + 0x20], 0x1516ea3d
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], ebx
jl 0x10022bfb
mov dword [esp + 0x28], ebx
inc dword [esp + 0x34]
mov dword [esp + 0x2c], 0x18ce
cmp dword [esp + 0x2c], 0x77d
jge 0x10022b5c
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x44]
push eax
push 0x100081e0
call fcn.1005d64b
add esp, 0xc
lea ecx, [esp + 0x5c]
push dword [esp + 0x40]
call fcn.1001ae5e
mov edx, dword [esp + 0x58]
mov esi, ebx
test edx, edx
jle 0x10022aef
mov edi, dword [esp + 0x5c]
mov eax, esi
and eax, 0x80000001
jns 0x10022ac6
dec eax
or eax, 0xfffffffe
inc eax
je 0x10022adb
mov ecx, dword [esp + 0x40]
lea eax, [esi - 1]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [edi + esi*4], ecx
jmp 0x10022ae6
mov eax, esi
cdq
sub eax, edx
sar eax, 1
inc eax
mov dword [edi + esi*4], eax
mov edx, dword [esp + 0x58]
inc esi
cmp esi, edx
jl 0x10022ab8
mov ecx, edx
and ecx, 0x80000001
jns 0x10022afe
dec ecx
or ecx, 0xfffffffe
inc ecx
mov esi, dword [esp + 0x5c]
neg ecx
sbb ecx, ecx
and ecx, 2
dec ecx
mov eax, dword [esp + 0x40]
cmp edx, eax
jge 0x10022b1e
mov eax, dword [esi + edx*4 - 4]
add eax, ecx
mov dword [esi + edx*4], eax
inc edx
jmp 0x10022b0a
mov edi, ebx
test eax, eax
jle 0x10022b3a
push dword [esi + edi*4]
push 0x10008234
call fcn.1005dc93
inc edi
pop ecx
pop ecx
cmp edi, dword [esp + 0x40]
jl 0x10022b24
push 0x10008146
call fcn.1005dee6
pop ecx
test esi, esi
je 0x10022b5c
push esi
call fcn.1005de9a
pop ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x1c], ebx
jl 0x10022bee
mov ebx, 0xffff
mov dword [esp + 0x2c], 8
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], 0xfffffff6
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0x10]
sub ecx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0x10]
sub ecx, dword [esp + eax*4 + 0x38]
sub ecx, dword [esp + 0x2c]
cmp ebx, ecx
sbb eax, eax
inc eax
add eax, dword [esp + 0x28]
je 0x10022bce
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0x30]
mov dword [esp + eax*4 + 0x38], ecx
dec dword [esp + 0x1c]
jns 0x10022b6f
xor ebx, ebx
dec dword [esp + 0x10]
jns 0x10022a68
xor edi, edi
inc edi
mov eax, dword [esp + 0x30]
cmp dword [esp + eax*4 + 0x38], ebx
je 0x10022c14
lea ecx, [esp + 0x3f]
mov byte [esp + 0x3f], bl
call fcn.10021f7a
jmp 0x10022c50
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x20], ebx
jne 0x10022c3c
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov eax, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x1c], edi
jb 0x10022c3c
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], 0xe99fd40f
inc dword [esp + 0x30]
or esi, 0xffffffff
cmp dword [esp + 0x30], ebx
jle 0x10022987
mov dword [esp + 0x14], 0x9714
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], 0x951ad386
mov dword [esp + 0x20], 0x1454bcd7
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x1c], ebx
je 0x10022ca3
mov eax, dword [esp + 0x1c]
mov edx, edi
add eax, dword [esp + 0x14]
jne 0x10022ca5
mov edx, ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
sub ecx, edx
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x30]
setge dl
neg eax
sbb eax, eax
add eax, 0x75cb5548
add eax, edx
cmp esi, eax
sbb eax, eax
inc eax
cmp eax, 0xa017
jl 0x10022dc9
push 4
lea ecx, [esp + 0x90]
call fcn.1001ae5e
push 3
lea ecx, [esp + 0xb4]
mov dword [esp + 0x128], ebx
call fcn.1001ae5e
mov dword [esp + 0x10], ebx
jmp 0x10022d20
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x8c]
mov dword [eax + ecx*4], ebx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x10022d0e
mov dword [esp + 0x10], ebx
jmp 0x10022d3f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xb0]
mov dword [eax + ecx*4], esi
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x10022d2d
mov dword [esp + 0x30], 0x45acee61
xor edx, edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x14]
cmp dword [ecx + 4], eax
sete dl
sub edx, 0x8f3b
jne 0x10022d99
mov eax, dword [esp + 0x8c]
cmp dword [eax + 0xc], ebx
je 0x10022d9b
mov ebx, edi
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0xb0]
mov dword [eax + 8], ebx
call fcn.1001b9e4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x124], esi
call fcn.1001b9e4
jmp 0x10022fee
mov dword [esp + 0x34], 0x277ed469
mov dword [esp + 0x28], 0x956a74ab
mov dword [esp + 0x2c], 0xf1470902
mov dword [esp + 0x10], ebx
jmp 0x10022dfa
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x100], 0x72970974
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x10022de7
mov esi, edi
cmp dword [esp + 0x34], ebx
jne 0x10022e0b
mov esi, ebx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x34]
dec edx
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
cmp edx, eax
setne cl
xor eax, eax
sub ecx, dword [esp + 0x20]
cmp ecx, 0xfffffff8
setle al
imul eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x34]
jne 0x10022e3c
mov eax, dword [esp + 0x34]
mov eax, dword [esp + 0x34]
xor ecx, ecx
cmp esi, eax
mov eax, dword [esp + 0x24]
setle cl
sub eax, ecx
cmp eax, dword [esp + 0x34]
jne 0x10022f31
mov eax, 0xb84a8a62
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0xf0], eax
lea ecx, [esp + 0xbc]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
push 2
call fcn.1001ae5e
mov dword [esp + 0x10], ebx
jmp 0x10022eaa
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xbc]
mov dword [eax + ecx*4], 0xfffffff6
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x10022e94
mov dword [esp + 0x10], ebx
jmp 0x10022ec7
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x7c], 0xd73c
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jl 0x10022eb7
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x28], eax
jl 0x10022ee2
mov dword [esp + 0xf4], edi
mov ecx, edi
jmp 0x10022ee4
mov ecx, ebx
mov eax, dword [esp + 0x34]
sub eax, ecx
cmp dword [esp + 0x1c], eax
jne 0x10022ef6
cmp dword [esp + 0x14], ebx
je 0x10022ef8
mov ebx, edi
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x7c]
imul ecx, dword [eax + 4]
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x24]
imul eax, ecx
lea ecx, [esp + 0xbc]
sub eax, 0x669d
mov dword [esp + 0x30], eax
call fcn.1001b9e4
jmp 0x10022fe3
xor edx, edx
mov dword [esp + 0x1c], 0x4cde8b7
mov dword [esp + 0x14], 0x4896b3c8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x84e0
mov eax, dword [esp + 0x1c]
setl dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x2c]
setg cl
xor edx, edx
cmp ecx, 0x2b4d
setl dl
xor ecx, ecx
cmp edx, eax
mov edx, 0x54c1ce2a
setl cl
sub edx, ecx
add edx, dword [esp + 0x14]
sub edx, dword [esp + 0x28]
neg edx
sbb edx, edx
xor eax, eax
inc edx
cmp edx, 0x3eeac61c
setl al
xor edx, edx
cmp eax, 0x780a
mov eax, dword [esp + 0x1c]
setne dl
xor ecx, ecx
test eax, eax
setle cl
add edx, ecx
jne 0x10022fb6
cmp dword [esp + 0x24], ebx
je 0x10022fbc
cmp dword [esp + 0x14], ebx
jne 0x10022fbe
mov edi, ebx
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov eax, dword [esp + 0x28]
imul edx, edi
cmp edx, eax
setl cl
cmp ecx, 0xfffffffb
sbb eax, eax
xor ecx, ecx
neg eax
cmp eax, 0xffffffff
setge cl
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x6c]
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [esp + 0x68]
mov esi, edx
mov edi, eax
call fcn.10021f08
mov ecx, dword [esp + 0x11c]
add eax, esi
add eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret