Function at 0x4654c7
Capabilities:
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afea5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x16c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x4658cb
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x54], 0xc8dd
mov dword [ebp - 0xf0], 7
mov dword [ebp - 0x14], 0xfffffffc
jmp 0x46553e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x16
jne 0x465560
mov byte [ebp - 0x23], 0
movzx eax, byte [ebp - 0x23]
test eax, eax
je 0x46555e
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x465537
mov dword [ebp - 0x14], 0
jmp 0x465570
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffe6
jg 0x4656d7
mov dword [ebp - 0x58], 0x3bfa32a1
push 4
lea ecx, [ebp - 0x140]
call fcn.00409f19
mov dword [ebp - 0x48], 0
jmp 0x46559e
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 4
jge 0x4655ba
push dword [ebp - 0x48]
lea ecx, [ebp - 0x140]
call fcn.00409fe1
mov dword [eax], 0x1448112d
jmp 0x465597
cmp dword [ebp - 0x58], 0
jne 0x465606
cmp dword [ebp - 0x14], 0
je 0x4655cf
mov dword [ebp - 0x64], 1
jmp 0x4655d3
and dword [ebp - 0x64], 0
mov esi, dword [ebp - 0x58]
imul eax, dword [ebp - 0x64], 0x7051
sub esi, eax
push 2
lea ecx, [ebp - 0x140]
call fcn.00409fe1
mov dword [eax], esi
cmp dword [ebp - 0x54], 0
jne 0x465606
mov eax, 0x2240
test eax, eax
jne 0x465606
and dword [ebp - 0xd0], 0
jmp 0x465610
mov dword [ebp - 0xd0], 1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xd0]
jge 0x465624
mov dword [ebp - 0x6c], 1
jmp 0x465628
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x6c]
cmp eax, 0x80f885bd
jne 0x465642
mov dword [ebp - 0x128], 1
jmp 0x465649
and dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x54], 0x6095610a
jg 0x46566a
cmp dword [ebp - 0x54], 0
jne 0x46566a
and dword [ebp - 0xe8], 0
jmp 0x465674
mov dword [ebp - 0xe8], 1
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x148], eax
push 1
lea ecx, [ebp - 0x140]
call fcn.00409fe1
cmp dword [eax], 0xe924f63a
ja 0x46569e
mov dword [ebp - 0x9c], 1
jmp 0x4656a5
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
shl eax, 1
mov dword [ebp - 0xf0], eax
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x4656c7
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 0x140]
call fcn.00409fc5
jmp 0x465569
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x1c], 0xfffffff6
mov dword [ebp - 0x1c], 0
jmp 0x4656fa
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffe3
je 0x4657de
mov dword [ebp - 0x2c], 0x58d32ffa
mov dword [ebp - 0x7c], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jne 0x465777
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], eax
jge 0x465738
mov dword [ebp - 0x74], 1
jmp 0x46573c
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x74], eax
je 0x465750
mov dword [ebp - 0xb4], 1
jmp 0x465757
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0xb4]
add eax, dword [ebp - 0x1c]
neg eax
mov dword [ebp - 0x7c], eax
je 0x465777
mov dword [ebp - 0xa4], 1
jmp 0x46577e
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
sub eax, 0x3b483900
jne 0x4657ad
mov byte [ebp - 0x20], 0
movzx eax, byte [ebp - 0x20]
test eax, eax
je 0x4657ab
push 0
push 0x12b9
push 0
push 0x11c5
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
jmp 0x4657d9
mov dword [ebp - 0x10c], 0x4a90c6d2
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x4657cb
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebp - 0x10c], 0
je 0x4657d9
jmp 0x4656f3
jmp 0x4656f3
mov dword [ebp - 0x84], 0xc79
mov dword [ebp - 0xec], str.ndmtsgzvw_vaxwh_ftmbabgs_ipjstvi_vpbqd_vjetcoa_ebgnp_gliodvd_tox_yrhifblhz_djkeamoef_maml_iiwl
cmp dword [ebp - 0x84], 0xe4f
jle 0x465857
and dword [ebp - 0x38], 0
jmp 0x46580b
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xc34
jge 0x465857
and dword [ebp - 0x50], 0
jmp 0x465821
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xcfb
jge 0x465855
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x50]
cdq
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], edx
push dword [ebp - 0xf8]
push dword [ebp - 0xfc]
mov ecx, 0xae33d8
call fcn.00409bc4
jmp 0x46581a
jmp 0x465804
mov byte [ebp - 0x1f], 0
movzx eax, byte [ebp - 0x1f]
test eax, eax
je 0x465870
push 0
push 0xcd5
call dword [sym.imp.GDI32.dll_CreateHatchBrush]
and dword [ebp - 4], 0
cmp dword [ebp - 0x84], 0xb59
jge 0x465890
mov edx, dword [ebp - 0xec]
mov ecx, 0xae33d8
call fcn.0040c802
jmp 0x4658ac
or dword [ebp - 4], 0xffffffff
jmp 0x4658b6
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x465e3f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0x118], 0x37ffeac8
mov dword [ebp - 0x100], 0x3e4f6f48
mov dword [ebp - 0x18], 0
jmp 0x4658f8
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x46590e
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xc4], 0x825e
jmp 0x4658f1
mov dword [ebp - 0x18], 0
jmp 0x46591e
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x465934
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x108], 0x2305aba9
jmp 0x465917
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0xc4], 0
je 0x465beb
mov dword [ebp - 0x28], 0x3a0f
mov dword [ebp - 0x5c], 0xe85fcb44
mov dword [ebp - 0x98], 8
mov dword [ebp - 0x40], 0
jmp 0x46596f
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 3
jge 0x465985
mov eax, dword [ebp - 0x40]
mov dword [ebp + eax*4 - 0x134], 0
jmp 0x465968
push 0xfffffffffffffffa
pop eax
test eax, eax
je 0x465b91
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0xc4], 0xaab21a84
jne 0x4659c9
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0xc4], 0
jne 0x4659c9
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0xc4], 0
jne 0x4659c9
and dword [ebp - 0xcc], 0
jmp 0x4659d3
mov dword [ebp - 0xcc], 1
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xcc], eax
jle 0x4659ea
mov dword [ebp - 0x8c], 1
jmp 0x4659f1
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x8c], eax
je 0x465a08
mov dword [ebp - 0xac], 1
jmp 0x465a0f
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0xac]
jge 0x465a26
mov dword [ebp - 0x94], 1
jmp 0x465a2d
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push 4
pop ecx
shl ecx, 1
add eax, dword [ebp + ecx - 0xc4]
push 4
pop ecx
shl ecx, 0
cmp eax, dword [ebp + ecx - 0xc4]
jge 0x465a5d
mov dword [ebp - 0x60], 1
jmp 0x465a61
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x60], eax
jle 0x465a82
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x108], 0
je 0x465a82
mov dword [ebp - 0x68], 1
jmp 0x465a86
and dword [ebp - 0x68], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x134]
add eax, dword [ebp - 0x68]
push 4
pop ecx
shl ecx, 0
cmp eax, dword [ebp + ecx - 0x108]
je 0x465aae
mov dword [ebp - 0x70], 1
jmp 0x465ab2
and dword [ebp - 0x70], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x134]
cmp dword [ebp - 0x70], eax
jg 0x465ada
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x108], 0
jne 0x465ada
and dword [ebp - 0x78], 0
jmp 0x465ae1
mov dword [ebp - 0x78], 1
push 4
pop eax
shl eax, 1
push 4
pop ecx
shl ecx, 1
mov ecx, dword [ebp + ecx - 0xc4]
sub ecx, dword [ebp - 0x78]
mov eax, dword [ebp + eax - 0xc4]
imul eax, ecx
mov dword [ebp - 0x80], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x80]
mov dword [ebp + eax - 0x134], ecx
cmp dword [ebp - 0x80], 0
je 0x465b2d
mov eax, 0xffff
test eax, eax
je 0x465b2d
mov dword [ebp - 0x88], 1
jmp 0x465b34
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x88], eax
jl 0x465b4e
cmp dword [ebp - 0x5c], 0
jne 0x465b4e
and dword [ebp - 0x90], 0
jmp 0x465b58
mov dword [ebp - 0x90], 1
mov eax, dword [ebp - 0x90]
sub eax, 0x3de76903
mov dword [ebp - 0x118], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x134]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x465b91
mov dword [ebp - 0xa0], 1
jmp 0x465b98
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xa0], eax
jl 0x465bb4
or eax, 0xffffffff
je 0x465bb4
mov dword [ebp - 0xa8], 1
jmp 0x465bbb
and dword [ebp - 0xa8], 0
cmp dword [ebp - 0xa8], 0xc42fa43d
jb 0x465bd3
mov dword [ebp - 0xb0], 1
jmp 0x465bda
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x100], eax
jmp 0x465d19
mov dword [ebp - 0xb8], 0x3e3e
mov dword [ebp - 0xdc], str.izebsrw_cciizt_fmxpofi_dozh_ocwfh_euuya_cktw_owquhxoh_grcm_ksuj_eeu_hminzsuj_ytdfilup_dlnoiik
cmp dword [ebp - 0xb8], 0x3e68
jle 0x465c9b
push 0x22b1
call dword [sym.imp.USER32.dll_IsIconic]
and dword [ebp - 0x4c], 0
jmp 0x465c27
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x54b1
jge 0x465c8f
and dword [ebp - 0x30], 0
jmp 0x465c3d
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x6072
jge 0x465c8d
mov eax, dword [ebp - 0x4c]
and eax, dword [ebp - 0x30]
cdq
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], edx
push dword [ebp - 0x110]
push dword [ebp - 0x114]
lea ecx, [ebp - 0x164]
call fcn.00401a71
pop ecx
pop ecx
mov ecx, eax
call fcn.00409bb9
push eax
call fcn.00499a27
pop ecx
lea ecx, [ebp - 0x164]
call fcn.00409baf
jmp 0x465c36
jmp 0x465c20
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov byte [ebp - 0x1d], 0
mov dword [ebp - 4], 2
cmp dword [ebp - 0xb8], 0x3b88
jge 0x465cbe
push dword [ebp - 0xdc]
call fcn.00499a27
pop ecx
jmp 0x465cda
or dword [ebp - 4], 0xffffffff
jmp 0x465ce4
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x465d19
push 0x159f
push 0
push 0xa1f
push 0x1dac
push 0x1241
push 0
push 0xfab
push 0x212f
push 0x1685
call dword [sym.imp.USER32.dll_DrawIconEx]
mov byte [ebp - 0x21], 0
mov dword [ebp - 0xc8], 0x55c4
mov dword [ebp - 0xe0], str.ztfsgezcm_wkcesrv_yhpsspfov_dgpcnu_gygnu_dizrky
cmp dword [ebp - 0xc8], 0x573a
jle 0x465dd5
and dword [ebp - 0x34], 0
jmp 0x465d4e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x1f84
jge 0x465dd5
and dword [ebp - 0x3c], 0
jmp 0x465d64
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x5419
jge 0x465dd0
and dword [ebp - 0x44], 0
jmp 0x465d7a
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x58d2
jge 0x465dce
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x3c]
and eax, dword [ebp - 0x44]
cdq
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], edx
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
lea ecx, [ebp - 0x17c]
call fcn.00401a71
pop ecx
pop ecx
mov ecx, eax
call fcn.00409bb9
push eax
call fcn.00499a27
pop ecx
lea ecx, [ebp - 0x17c]
call fcn.00409baf
jmp 0x465d73
jmp 0x465d5d
jmp 0x465d47
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x465de5
push 0
call dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
mov dword [ebp - 4], 4
cmp dword [ebp - 0xc8], 0x55b5
jge 0x465e04
push dword [ebp - 0xe0]
call fcn.00499a27
pop ecx
jmp 0x465e20
or dword [ebp - 4], 0xffffffff
jmp 0x465e2a
push 0x53d
push 0
push dword [ebp - 0xd8]
call fcn.004685f4
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret