Function at 0x10007878
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005bb0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xb8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1000793d
lea eax, [ebp + 0x18]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xa8]
movzx eax, byte [eax]
test eax, eax
je 0x100078d4
push 0
push 0xc27
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x10007938
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x10007938
push 0x650
push 0x259a
push 0x52
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
push 0x76a
push 0x3af
push 0x2420
push 0x15d9
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x10007d0e
lea eax, [ebp + 0x10]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax]
test eax, eax
je 0x10007cdf
mov dword [ebp - 0x90], 0x1f3d
cmp dword [ebp - 0x90], 0x812
jge 0x10007a9b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push str._d__d__d__d__d_n
call fcn.100461eb
add esp, 0x18
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x44], eax
and dword [ebp - 0x3c], 0
jmp 0x100079b5
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x38]
jge 0x100079f6
lea eax, [ebp - 0x64]
push eax
push 0x100639fc
call fcn.100461eb
pop ecx
pop ecx
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x64]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x40]
jge 0x100079e7
mov dword [ebp - 0x70], 1
jmp 0x100079eb
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x28], eax
jmp 0x100079ae
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x38]
cmp dword [ebp - 0x1c], eax
jle 0x10007a18
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x28], eax
jg 0x10007a40
mov eax, dword [ebp - 0x40]
imul eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x44], eax
jge 0x10007a4b
push 0x10064418
call fcn.10046996
pop ecx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x98], 0
je 0x10007a71
push 0x1006441c
call fcn.1004677c
pop ecx
jmp 0x10007a4b
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0xbc], 0
je 0x10007a9b
push dword [ebp - 0x40]
push 0x10064420
call fcn.1004677c
pop ecx
pop ecx
jmp 0x10007a71
mov dword [ebp - 0x14], 0x7ca0029b
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x14]
jg 0x10007ac1
mov dword [ebp - 0x58], 1
jmp 0x10007ac5
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x58], eax
jge 0x10007ad6
mov dword [ebp - 0x68], 1
jmp 0x10007ada
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x68], eax
je 0x10007aeb
mov dword [ebp - 0x60], 1
jmp 0x10007aef
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x60], eax
jne 0x10007b03
mov dword [ebp - 0xa0], 1
jmp 0x10007b0a
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0x14], 0x2ef7
jne 0x10007b25
mov dword [ebp - 0x50], 1
jmp 0x10007b29
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x50], eax
jge 0x10007b3a
mov dword [ebp - 0x54], 1
jmp 0x10007b3e
and dword [ebp - 0x54], 0
imul eax, dword [ebp - 0x54], 0xffffffff
cmp dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xadfb1af9
je 0x10007b5d
mov dword [ebp - 0x7c], 1
jmp 0x10007b61
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0x48], 0
ja 0x10007b7c
cmp dword [ebp - 0x5c], 0
jne 0x10007b7c
and dword [ebp - 0x4c], 0
jmp 0x10007b83
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x4c], eax
je 0x10007b94
mov dword [ebp - 0x6c], 1
jmp 0x10007b98
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x6c]
je 0x10007be0
mov dword [ebp - 0x84], 0xdc10
lea eax, [ebp - 0x84]
push eax
push 0
push 1
push 0x1b12
push 0x35b8
push 0x3cbe
push 0x7a45
push 0x6aa8
push 1
call fcn.100096a8
add esp, 0x24
jmp 0x10007c02
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x10007c02
push 0
push 0
push 0xb57
push 0x1e30
push 0
call dword [sym.imp.USER32.dll_InsertMenuW]
mov dword [ebp - 0x74], 0x1cb
mov dword [ebp - 0x8c], str.yjclfg_fbliu_qkqwrhq_solzl_brpqmdj_ytznq
cmp dword [ebp - 0x74], 0x312
jle 0x10007c75
and dword [ebp - 0x30], 0
jmp 0x10007c29
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x6082
jge 0x10007c75
and dword [ebp - 0x2c], 0
jmp 0x10007c3f
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x35d1
jge 0x10007c73
mov eax, dword [ebp - 0x30]
or eax, dword [ebp - 0x2c]
cdq
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
mov ecx, 0x10075c58
call fcn.1000ed7e
jmp 0x10007c38
jmp 0x10007c22
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x10007c9a
push 0x173
push 0
push 0xf61
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
and dword [ebp - 4], 0
cmp dword [ebp - 0x74], 0x178
jge 0x10007cb7
mov edx, dword [ebp - 0x8c]
mov ecx, 0x10075c58
call fcn.1001381a
jmp 0x10007cd3
or dword [ebp - 4], 0xffffffff
jmp 0x10007cdd
jmp 0x10007d0e
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
movzx eax, byte [eax]
test eax, eax
je 0x10007d0e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret