Function at 0x4f9ec0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5228f7
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x565300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x4c], eax
mov esi, dword [eax + 4]
call fcn.00404590
mov ecx, eax
test ecx, ecx
je 0x4fa813
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.004037a0
test al, al
jne 0x4f9f60
test esi, esi
jne 0x4f9f42
xor ecx, ecx
jmp 0x4f9f56
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f9f47
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.00403c10
mov eax, dword [ebp - 0x44]
mov edx, 0x5287b0
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x4f9f97
test si, si
je 0x4f9f93
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4f9f97
add ecx, 4
add edx, 4
test si, si
jne 0x4f9f71
xor esi, esi
jmp 0x4f9f9c
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f9fb4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x4f9fc7
mov dword [edi + 0x17c], 1
jmp 0x4fa3dc
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax + 4]
call fcn.00404590
mov ecx, eax
test ecx, ecx
je 0x4fa813
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 1
call fcn.004037a0
test al, al
jne 0x4fa029
test esi, esi
jne 0x4fa005
xor ecx, ecx
jmp 0x4fa01f
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fa010
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.00403c10
mov eax, dword [ebp - 0x44]
mov edx, str.mode_full
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
nop word [eax + eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x4fa066
test si, si
je 0x4fa062
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4fa066
add ecx, 4
add edx, 4
test si, si
jne 0x4fa040
xor esi, esi
jmp 0x4fa06b
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fa083
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x4fa096
mov dword [edi + 0x180], 1
jmp 0x4fa3dc
mov esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
push dword [esi + 4]
call fcn.00403e40
mov ecx, str.mode_tran
mov eax, dword [eax]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4fa0db
test dx, dx
je 0x4fa0d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4fa0db
add eax, 4
add ecx, 4
test dx, dx
jne 0x4fa0b0
mov dword [ebp - 0x44], 0
jmp 0x4fa0e3
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x48]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fa0fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x44], 0
jne 0x4fa113
mov dword [edi + 0x180], 4
jmp 0x4fa3dc
push dword [esi + 4]
lea ecx, [ebp - 0x48]
call fcn.00403e40
mov ecx, str.mode_text
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4fa150
test dx, dx
je 0x4fa147
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4fa150
add eax, 4
add ecx, 4
test dx, dx
jne 0x4fa125
mov dword [ebp - 0x44], 0
jmp 0x4fa158
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x48]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fa173
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x44], 0
jne 0x4fa188
mov dword [edi + 0x180], 3
jmp 0x4fa3dc
push dword [esi + 4]
lea ecx, [ebp - 0x48]
call fcn.00403e40
mov ecx, str.mode_excel
mov eax, dword [eax]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4fa1cb
test dx, dx
je 0x4fa1c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4fa1cb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4fa1a0
mov dword [ebp - 0x44], 0
jmp 0x4fa1d3
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x48]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fa1ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x44], 0
jne 0x4fa203
mov dword [edi + 0x180], 2
jmp 0x4fa3dc
push dword [esi + 4]
lea ecx, [ebp - 0x48]
call fcn.00403e40
mov ecx, str.mode_normal
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4fa240
test dx, dx
je 0x4fa237
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4fa240
add eax, 4
add ecx, 4
test dx, dx
jne 0x4fa215
mov dword [ebp - 0x44], 0
jmp 0x4fa248
sbb eax, eax
or eax, 1
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x48]
call fcn.004040e0
cmp dword [ebp - 0x44], 0
jne 0x4fa265
mov dword [edi + 0x180], 5
jmp 0x4fa3dc
push dword [esi + 4]
lea ecx, [ebp - 0x44]
call fcn.00403e40
mov dword [ebp - 0x48], eax
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
jge 0x4fa2d1
lea ecx, [ebp - 0x44]
call fcn.004040e0
mov eax, dword [esi + 4]
push eax
lea ecx, [ebp - 0x48]
call fcn.00403e40
mov ecx, 0x52883c
mov eax, dword [eax]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4fa3c1
test dx, dx
je 0x4fa2ca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4fa3c1
add eax, 4
add ecx, 4
test dx, dx
jne 0x4fa2a0
xor esi, esi
jmp 0x4fa3c6
push str.mode_conv
push ecx
call sub.VCRUNTIME140.dll_wcsstr
mov esi, eax
lea ecx, [ebp - 0x44]
add esp, 8
test esi, esi
jne 0x4fa2f5
call fcn.004040e0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
jmp 0x4fa286
mov eax, dword [ebp - 0x48]
sub esi, dword [eax]
sar esi, 1
call fcn.004040e0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
cmp esi, 0xffffffff
je 0x4fa286
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 2
call fcn.00403e40
push 0x528838
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00403e40
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004aee30
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.004040e0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
sub eax, ecx
sar eax, 2
cmp eax, 3
jne 0x4fa39e
push dword [ecx + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [edi + 0x184], eax
lea ecx, [edi + 0x188]
mov eax, dword [ebp - 0x5c]
add esp, 4
add eax, 8
push eax
call fcn.00403280
lea ecx, [ebp - 0x48]
mov dword [edi + 0x180], 6
call fcn.004040e0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.00486160
jmp 0x4fa3dc
sbb esi, esi
or esi, 1
lea ecx, [ebp - 0x48]
call fcn.004040e0
test esi, esi
jne 0x4fa3dc
mov dword [edi + 0x180], 7
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [edi + 0x17c], 0
je 0x4fa3fb
push 0x71b33c
lea ecx, [edi + 0x48]
call fcn.004e9850
push 0x6b
push dword [0x568650]
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
push 0xfffffffffffffff4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetClassLongW]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push dword [edi + 4]
call esi
and eax, 0xfffbffff
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x33
push 0
push 0
push 0
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x400000
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
push dword [edi + 4]
call esi
mov ecx, eax
and ecx, 0xff3fffff
cmp eax, ecx
je 0x4fa495
push ecx
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x17
push 0
push 0
push 0
push 0
push 0
push dword [edi + 4]
call esi
jmp 0x4fa49b
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x38]
push 0x10
push eax
push ecx
push 0
push 0
push 0xffffffffffffffff
push dword [edi + 4]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4c
mov dword [ebp - 0x48], 0
call esi
push 0x4d
mov dword [ebp - 0x30], eax
call esi
push 0x4e
mov dword [ebp - 0x2c], eax
call esi
push 0x4f
mov dword [ebp - 0x28], eax
call esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004f6ad0
add esp, 8
mov ecx, edi
push dword [ebp - 0x48]
push eax
call fcn.004ff460
mov ecx, edi
call fcn.004f6d30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x568c18
call fcn.0048cf10
mov esi, eax
xor ecx, ecx
mov edx, dword [esi + 8]
test edx, edx
jle 0x4fa550
mov eax, dword [esi + 4]
lea edx, [edi + 0x34]
cmp dword [eax], edx
mov edx, dword [esi + 8]
je 0x4fa54b
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4fa537
jmp 0x4fa550
cmp ecx, 0xffffffff
jne 0x4fa5c5
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jne 0x4fa5b0
mov eax, dword [esi + 4]
lea edx, [ebp - 0x60]
cmp edx, eax
mov edx, dword [esi + 8]
jb 0x4fa575
lea edx, [ebp - 0x60]
lea eax, [eax + ecx*4]
cmp edx, eax
mov edx, dword [esi + 8]
jb 0x4fa813
test ecx, ecx
jne 0x4fa583
mov eax, 1
mov dword [ebp - 0x48], eax
jmp 0x4fa594
lea eax, [edx + edx]
mov dword [ebp - 0x48], eax
test eax, eax
js 0x4fa5c5
cmp eax, 0x1fffffff
ja 0x4fa5c5
push 4
push eax
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__recalloc]
add esp, 0xc
test eax, eax
je 0x4fa5c5
mov ecx, dword [ebp - 0x48]
mov dword [esi + 0xc], ecx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
lea ecx, [eax + ecx*4]
test ecx, ecx
je 0x4fa5c2
lea eax, [edi + 0x34]
mov dword [ecx], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xe0
call fcn.0050e592
mov esi, eax
add esp, 4
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 5
test esi, esi
je 0x4fa63b
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], eax
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 6
mov dword [esi], vtable.CDrawStyleTool.0
call fcn.00503b60
xorps xmm0, xmm0
movups xmmword [esi + 0xc8], xmm0
mov dword [esi + 0xc4], 0
jmp 0x4fa63d
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xc8], esi
test esi, esi
je 0x4fa6df
xor eax, eax
cmp dword [section..data], eax
sete al
mov dword [esi + 0xdc], eax
cmp dword [0x5651d8], 0
mov eax, dword [edi + 4]
mov esi, dword [edi + 0xc8]
mov dword [ebp - 0x48], eax
jne 0x4fa682
mov dword [0x5651d8], 0
push dword [ebp - 0x50]
lea eax, [esi + 0x20]
push eax
push 0x5651a8
push 0x565494
push 0x5690e0
call fcn.0041a150
add esp, 0x14
movzx eax, ax
mov ecx, esi
push 0
push eax
push 0
push 0
push SysReAllocString
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x48]
call fcn.00419d20
mov eax, dword [edi + 0xc8]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0xc8]
mov eax, dword [edi + 4]
mov dword [ecx + 0xd8], eax
movaps xmm0, xmmword [0x528c60]
lea eax, [ebp - 0x40]
push eax
lea esi, [edi + 0x104]
push esi
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [edi + 0xcc]
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x28], 0
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov dword [ecx + 0x30], eax
mov eax, dword [ecx + 0x44]
sub eax, dword [ecx + 0x3c]
inc dword [ecx + 0x2c]
dec dword [ecx + 0x30]
mov dword [ecx + 0x34], eax
dec dword [ecx + 0x34]
mov dword [ecx + 0x28], 1
call fcn.004fe7b0
cmp dword [0x565268], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x48], eax
jne 0x4fa74e
mov dword [0x565268], str.EDIT
push dword [ebp - 0x50]
lea eax, [edi + 0xec]
push eax
push 0x565238
push 0x565494
push 0x5690e0
call fcn.0041a150
add esp, 0x14
movzx eax, ax
lea ecx, [edi + 0xcc]
push 0
push eax
push 0
push 0
push 0x40011004
push 0
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x48]
call fcn.00453b80
push 0x52d720
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xc
call dword [sym.imp.GDI32.dll_CreateFontW]
push 1
push eax
push 0x30
push dword [edi + 0xd0]
mov dword [edi + 0x128], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x180]
cmp eax, 3
je 0x4fa7e8
cmp eax, 4
je 0x4fa7e8
cmp eax, 2
je 0x4fa7e8
cmp eax, 7
jne 0x4fa7f4
push eax
push dword [edi + 4]
call fcn.004f5060
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00404110
int3