Function at 0x10022357
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100227c1
lea eax, [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x100227a6
mov dword [ebp - 0x58], 0x26fb
cmp dword [ebp - 0x58], 0x8fe
jge 0x1002279a
xor eax, eax
inc eax
je 0x1002279a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10008060
call fcn.1004f52b
add esp, 0xc
cmp dword [ebp - 0x24], 0
jne 0x100223ba
jmp 0x1002279a
and dword [ebp - 0x34], 0
jmp 0x100223c7
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x24]
jge 0x100223e7
imul eax, dword [ebp - 0x34], 0x6a
add eax, 0x1065df88
push eax
push 0x10007efc
call fcn.1004f52b
pop ecx
pop ecx
jmp 0x100223c0
and dword [ebp - 0x14], 0
jmp 0x100223f4
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jge 0x10022528
imul eax, dword [ebp - 0x14], 0x6a
mov ecx, dword [ebp - 0x18]
movsx eax, byte [eax + ecx + 0x1065df87]
cmp eax, 0x23
jne 0x1002241d
mov dword [ebp - 0x4c], 1
jmp 0x10022421
and dword [ebp - 0x4c], 0
imul eax, dword [ebp - 0x14], 0x1a8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x4c]
mov dword [eax + ecx*4 + 0x10b2887c], edx
mov eax, dword [ebp - 0x18]
dec eax
dec eax
mov dword [ebp - 0x1c], eax
jmp 0x10022446
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x10022491
imul eax, dword [ebp - 0x14], 0x6a
mov ecx, dword [ebp - 0x1c]
movsx eax, byte [eax + ecx + 0x1065df88]
cmp eax, 0x23
jne 0x10022477
imul eax, dword [ebp - 0x14], 0x1a8
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + ecx*4 + 0x10b28884]
inc eax
mov dword [ebp - 0x50], eax
jmp 0x1002247b
and dword [ebp - 0x50], 0
imul eax, dword [ebp - 0x14], 0x1a8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x50]
mov dword [eax + ecx*4 + 0x10b28880], edx
jmp 0x1002243f
imul eax, dword [ebp - 0x14], 0x6a
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
movsx eax, byte [eax + ecx + 0x1065df88]
cmp eax, 0x23
jne 0x100224ae
mov byte [ebp - 2], 1
jmp 0x100224b2
mov byte [ebp - 2], 0
imul eax, dword [ebp - 0x14], 0x6a
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
mov dl, byte [ebp - 2]
mov byte [eax + ecx + 0x1065af90], dl
mov dword [ebp - 0x20], 1
jmp 0x100224d6
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jge 0x10022523
imul eax, dword [ebp - 0x14], 0x6a
mov ecx, dword [ebp - 0x20]
movsx eax, byte [eax + ecx + 0x1065df88]
cmp eax, 0x23
jne 0x1002250c
imul eax, dword [ebp - 0x14], 0x6a
mov ecx, dword [ebp - 0x20]
movsx eax, byte [eax + ecx + 0x1065df87]
cmp eax, 0x2e
jne 0x1002250c
mov byte [ebp - 3], 1
jmp 0x10022510
mov byte [ebp - 3], 0
imul eax, dword [ebp - 0x14], 0x6a
mov ecx, dword [ebp - 0x20]
mov dl, byte [ebp - 3]
mov byte [eax + ecx + 0x1065af90], dl
jmp 0x100224cf
jmp 0x100223ed
and dword [ebp - 0x48], 0
mov byte [ebp - 1], 1
and dword [ebp - 0x28], 0
jmp 0x1002253d
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jge 0x1002256d
mov byte [ebp - 4], 0
lea eax, [ebp - 4]
push eax
imul eax, dword [ebp - 0x28], 0x6a
mov ecx, dword [ebp - 0x18]
lea edx, [eax + ecx + 0x10660d08]
imul ecx, dword [ebp - 0x28], 0x6a
add ecx, 0x10660d08
call fcn.1002fc05
pop ecx
jmp 0x10022536
and dword [ebp - 0xc], 0
jmp 0x1002257a
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x24]
jge 0x10022771
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10022771
and dword [ebp - 0x10], 0
jmp 0x1002259f
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jge 0x1002276c
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1002276c
imul eax, dword [ebp - 0xc], 0x6a
mov ecx, dword [ebp - 0x10]
movzx eax, byte [eax + ecx + 0x10660d08]
test eax, eax
jne 0x10022767
imul eax, dword [ebp - 0xc], 0x6a
mov ecx, dword [ebp - 0x10]
movsx eax, byte [eax + ecx + 0x1065df88]
cmp eax, 0x23
jne 0x10022767
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
imul eax, dword [ebp - 0xc], 0x1a8
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + ecx*4 + 0x10b28880]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0xc], 0
jle 0x10022627
cmp dword [ebp - 0x10], 0
jle 0x10022627
mov eax, dword [ebp - 0xc]
dec eax
imul eax, eax, 0x6a
mov ecx, dword [ebp - 0x10]
movzx eax, byte [eax + ecx + 0x10660d07]
test eax, eax
je 0x10022627
mov byte [ebp - 1], 0
cmp dword [ebp - 0xc], 0
jle 0x1002265e
and dword [ebp - 0x40], 0
jmp 0x1002263a
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x44]
jge 0x1002265e
mov eax, dword [ebp - 0xc]
dec eax
imul eax, eax, 0x6a
mov ecx, dword [ebp - 0x10]
movzx eax, byte [eax + ecx + 0x10660d08]
test eax, eax
je 0x1002265c
mov byte [ebp - 1], 0
jmp 0x10022633
cmp dword [ebp - 0xc], 0
jle 0x10022687
mov eax, dword [ebp - 0x18]
dec eax
cmp dword [ebp - 0x10], eax
jge 0x10022687
mov eax, dword [ebp - 0xc]
dec eax
imul eax, eax, 0x6a
mov ecx, dword [ebp - 0x10]
movzx eax, byte [eax + ecx + 0x10660d09]
test eax, eax
je 0x10022687
mov byte [ebp - 1], 0
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 1
jmp 0x1002269e
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x24]
jge 0x100226cb
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x38]
imul eax, eax, 0x6a
mov ecx, dword [ebp - 0x10]
movsx eax, byte [eax + ecx + 0x1065df88]
cmp eax, 0x23
jne 0x100226cb
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
jmp 0x10022697
and dword [ebp - 0x2c], 0
jmp 0x100226d8
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x3c]
jge 0x10022719
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x2c]
imul eax, eax, 0x6a
mov ecx, dword [ebp - 0x10]
movzx eax, byte [eax + ecx + 0x1065af90]
test eax, eax
je 0x10022713
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x2c]
imul eax, eax, 0x1a8
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + ecx*4 + 0x10b28880]
cmp eax, dword [ebp - 0x44]
je 0x10022717
mov byte [ebp - 1], 0
jmp 0x100226d1
and dword [ebp - 0x30], 0
jmp 0x10022726
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x3c]
jge 0x10022767
mov byte [ebp - 5], 1
lea eax, [ebp - 5]
push eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x30]
imul eax, eax, 0x6a
mov ecx, dword [ebp - 0x10]
lea edx, [eax + ecx + 0x10660d08]
add edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x30]
imul eax, eax, 0x6a
mov ecx, dword [ebp - 0x10]
lea ecx, [eax + ecx + 0x10660d08]
call fcn.1002fc05
pop ecx
jmp 0x1002271f
jmp 0x10022598
jmp 0x10022573
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x10022786
push 0x10008100
call fcn.1004fe4e
pop ecx
jmp 0x10022795
push dword [ebp - 0x48]
push 0x10008110
call fcn.1004fe4e
pop ecx
pop ecx
jmp 0x10022391
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x100227bf
mov byte [ebp - 6], 0
movzx eax, byte [ebp - 6]
test eax, eax
je 0x100227bf
push 0
push 0x1a86
call dword [sym.imp.USER32.dll_GetWindowPlacement]
jmp 0x100227de
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x5c]
push 0x3887
push 0
push 0x275
call fcn.1000bf16
add esp, 0x10
mov esp, ebp
pop ebp
ret