Function at 0x4865d9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b41e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x48696f
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x30], 0x64c8
mov dword [ebp - 0x5c], str.njqytbcj_epixrqn_ivmcuyjpc_aluubxu_haetnht_mgsicftns_hby_munbgcm
cmp dword [ebp - 0x30], 0x6578
jle 0x48669a
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and dword [ebp - 0x2c], 0
jmp 0x48664e
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x1476
jge 0x486694
and dword [ebp - 0x1c], 0
jmp 0x486664
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x14f9
jge 0x486692
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
push dword [ebp - 0x80]
push dword [ebp - 0x84]
mov ecx, 0xa97fd8
call fcn.0040e02b
jmp 0x48665d
jmp 0x486647
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0x6181
jge 0x4866ba
mov edx, dword [ebp - 0x5c]
mov ecx, 0xa97fd8
call fcn.0041000e
jmp 0x4866d6
or dword [ebp - 4], 0xffffffff
jmp 0x4866e0
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x34], 0x9db
mov dword [ebp - 0x44], str.pljjjjl_hwjnhuxxq_pexwu_pvy_gej_abmoyrkp_ivgfwuiz_farwb_tkbfzvsek_udyhdfkda_qhlvd_ryc
cmp dword [ebp - 0x34], 0xaeb
jle 0x4867c7
push 0
push 0x2193
push 0x11df
push 0x2327
call dword [sym.imp.GDI32.dll_GetDIBColorTable]
and dword [ebp - 0x14], 0
jmp 0x48673a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2923
jge 0x4867c7
and dword [ebp - 0x28], 0
jmp 0x486754
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x51ca
jge 0x4867c2
and dword [ebp - 0x24], 0
jmp 0x48676a
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4037
jge 0x4867c0
mov eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x24]
add edx, dword [ebp - 0x14]
mov eax, edx
cdq
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
lea ecx, [ebp - 0xbc]
call fcn.004019bd
pop ecx
pop ecx
mov ecx, eax
call fcn.0040e020
push eax
call fcn.0049dd57
pop ecx
lea ecx, [ebp - 0xbc]
call fcn.0040e016
jmp 0x486763
jmp 0x48674d
jmp 0x486733
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x88], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x34], 0x74b
jge 0x4867e9
push dword [ebp - 0x44]
call fcn.0049dd57
pop ecx
jmp 0x486805
or dword [ebp - 4], 0xffffffff
jmp 0x48680f
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x48695c
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], 0x747
mov dword [ebp - 0xa4], str.amkwdakpo_yqkf_poupk_lppf_touwv_mmbah_icdyp_rlf_fyqlyqpa_gzmduf
cmp dword [ebp - 0x38], 0xaaa
jle 0x4868d0
push 0
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [ebp - 0x18], 0
jmp 0x486867
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x57e6
jge 0x4868d0
and dword [ebp - 0x20], 0
jmp 0x48687d
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1383
jge 0x4868ce
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
lea ecx, [ebp - 0xd4]
call fcn.004019bd
pop ecx
pop ecx
mov ecx, eax
call fcn.0040e020
push eax
call fcn.0049dd57
pop ecx
lea ecx, [ebp - 0xd4]
call fcn.0040e016
jmp 0x486876
jmp 0x486860
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 4
cmp dword [ebp - 0x38], 0x717
jge 0x4868f2
push dword [ebp - 0xa4]
call fcn.0049dd57
pop ecx
jmp 0x48690e
or dword [ebp - 4], 0xffffffff
jmp 0x486918
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x50], eax
push dword [ebp - 0xa0]
push dword [ebp - 0x40]
push 0x54ed
push dword [ebp - 0x48]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
push dword [ebp - 0x60]
push dword [ebp - 0x68]
push dword [ebp - 0x70]
push 1
call fcn.0048699d
add esp, 0x28
jmp 0x48696d
push 0x16f9
push 0
push 0
call fcn.004706b3
add esp, 0xc
jmp 0x48698c
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
push 0x53df
push 0x5692
push 0
call fcn.00472a38
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret