Function at 0x409cb0
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c010
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x138
mov eax, dword [0x45500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi]
call dword [sym.imp.USER32.dll_GetDpiForWindow]
push 0x60
push eax
push 0x2d0
mov dword [edi + 0xf0], eax
mov dword [edi + 0xf4], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x60
push dword [edi + 0xf0]
mov esi, eax
push 0x1f4
mov dword [ebp - 0xa4], esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0xa8], eax
call fcn.00407530
sub esp, 8
mov ecx, esp
mov dword [ecx], str.BelaUtilscaelum.pos.json
mov dword [ecx + 4], 0x19
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004075c0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x58]
push eax
call fcn.00408ae0
mov ecx, dword [ebp - 0x18]
add esp, 8
mov byte [ebp - 0xa9], al
cmp ecx, 8
jb 0x409db8
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409da8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a116
push ecx
push edx
call fcn.00424cbf
mov al, byte [ebp - 0xa9]
add esp, 8
test al, al
je 0x409dcd
push 0x14
push dword [ebp - 0xa8]
push esi
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
jmp 0x409e0d
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x24]
push 0x60
push dword [edi + 0xf0]
push 0x64
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp - 0xa4]
sub esi, ecx
push 0x14
push dword [ebp - 0xa8]
push ecx
push eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [edi + 0xf0]
lea ecx, [edi + 0x24]
call fcn.00409290
cmp dword [edi + 0x24], 0
jne 0x409e36
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [edi + 0x24], eax
push 0x1f4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_ChangeWindowMessageFilter]
push 1
push 0x233
call esi
push 1
push 0x4a
call esi
push 1
push 0x49
call esi
push 1
push dword [edi]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov eax, dword [edi + 0x90]
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xa8], 0x41
push ecx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb4], 0x64
push ecx
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xb0], 0x28
push ecx
mov dword [ebp - 0xa4], 0x14
push ecx
cmp eax, dword [edi + 0x94]
je 0x409edf
mov edx, eax
call fcn.00415fa0
add esp, 0x14
add dword [edi + 0x90], 0x28
jmp 0x409eeb
push eax
lea ecx, [edi + 0x8c]
call fcn.00412940
lea eax, [ebp - 0x24]
mov dword [ebp - 0xa4], 0x1a4
push eax
mov dword [ebp - 0xb0], 0x258
mov dword [ebp - 0xb4], 0x190
mov dword [ebp - 0xa8], 0x3c
mov dword [ebp - 0x100], str.._Force_Charlie._All_Rights_Reserved.
mov dword [ebp - 0xfc], 0x25
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x24]
lea edx, [ebp - 0x98]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.004048d0
lea eax, [ebp - 0x100]
mov dword [ebp - 0x148], 0x44cb2c
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x144], 0xf
push eax
lea edx, [ebp - 0x148]
lea ecx, [ebp - 0x44]
call fcn.00404500
mov eax, dword [edi + 0x90]
lea ecx, [ebp - 0xa4]
add esp, 0x10
push ecx
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0xb4]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x44]
push ecx
cmp eax, dword [edi + 0x94]
je 0x409fbc
mov edx, eax
call fcn.004160c0
add esp, 0x14
add dword [edi + 0x90], 0x28
jmp 0x409fc8
push eax
lea ecx, [edi + 0x8c]
call fcn.00412a90
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x40a002
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409ff8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a11b
push ecx
push edx
call fcn.00424cbf
add esp, 8
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 0x44cb50
push 0x3e9
push 0
push 0xf060
push eax
call dword [sym.imp.USER32.dll_InsertMenuW]
lea eax, [edi + 0x28]
mov ecx, edi
push eax
push 0x3ea
push 0x1b
push 0x1fe
push 0x28
push 0x3c
push 0x54010080
push 0x444c00
push str.Edit
push 0x204
call fcn.004020c0
lea eax, [edi + 0x3c]
mov ecx, edi
push eax
push 0x3eb
push 0x1b
push 0x41
push 0x28
push 0x23f
push 0x50000000
push 0x44cba0
push str.Button
push 4
call fcn.004020c0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x40a0f4
cmp dword [ebp - 0xb8], 2
jl 0x40a0ed
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a0ed
mov edx, dword [esi + 4]
sub esp, 8
mov ecx, esp
lea eax, [edx + 2]
mov dword [ecx], edx
mov dword [ebp - 0xa4], eax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a0d0
sub edx, dword [ebp - 0xa4]
sar edx, 1
mov dword [ecx + 4], edx
mov ecx, edi
call fcn.0040a130
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424cac
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0042821f
call fcn.0042821f
int3