Function at 0x430190
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489a8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdd4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 8], ebx
jne 0x430200
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ebx, ecx
xor eax, eax
mov edi, edx
mov dword [ebp - 4], 0xffffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esi + 0x1a18]
mov edi, edx
mov ecx, dword [esi - 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4304e1
mov eax, dword [0x4ad97c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x430]
mov byte [ebp - 4], 2
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [ebp - 0x830]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x430]
mov dword [ebp - 0x24], ebx
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.WSAPPATH
call fcn.00440077
add esp, 4
test eax, eax
je 0x430290
push str.WSAPPATH
call fcn.00440077
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x830]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x830]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.00464c3f
mov edx, dword [ebp + 8]
push edx
call fcn.0042b580
add esp, 4
test eax, eax
je 0x430367
lea ecx, [ebp - 0xde0]
mov byte [ebp - 4], 3
call fcn.0040f3b0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x24]
push eax
lea edx, [ebp - 0x14]
push ecx
push edx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov byte [ebp - 4], 4
call fcn.00464a29
lea ecx, [ebp - 0xde0]
call fcn.00411220
lea ecx, [ebp - 0xde0]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.0040f460
mov dword [ebp - 4], 2
jmp 0x43037a
mov edx, dword [ebp + 8]
push edx
push 0x4ad208
push 3
call fcn.0042aae0
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp esi, ebx
jne 0x4303da
mov ecx, dword [ebp - 0x18]
push ecx
push str.File_Decrypt_Failed___s_
push 3
call fcn.0042aae0
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00464cb4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00464cb4
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00464cb4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x30]
call fcn.00436050
push ecx
lea edx, [ebp - 0x14]
mov ebx, 6
mov ecx, esp
mov dword [ebp - 0x28], esp
push edx
mov byte [ebp - 4], bl
call fcn.00464a29
lea ecx, [ebp - 0x30]
call fcn.004360e0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebp - 0x20], 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.key_mackey_value
call fcn.00464d22
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00436140
mov eax, dword [ebp - 0x20]
or edi, 0xffffffff
cmp eax, edi
mov byte [ebp - 4], 7
jne 0x430496
push 0x4ad1c0
push ebx
call fcn.0042aae0
add esp, 8
lea edx, [ebp - 0x1c]
push 0
push 0x30
push 0x10
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push edx
call fcn.00464a29
lea eax, [ebp + 0x10]
push eax
call fcn.0042b420
add esp, 0x14
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00464ded
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 7
call fcn.00464cb4
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], bl
mov edx, dword [ecx]
mov dword [esi], edx
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov edx, dword [ecx + 8]
mov dword [esi + 8], edx
mov eax, dword [ecx + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [esi + 0xc], eax
call fcn.00464cb4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004360d0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00464cb4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00464cb4
mov dword [ebp - 4], edi
lea ecx, [ebp + 8]
call fcn.00464cb4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc