Function at 0x403af0
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x423d5c
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x42ea04]
xor eax, esp
mov dword [esp + 0x85c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42ea04]
xor eax, esp
push eax
lea eax, [esp + 0x874]
mov dword fs:[0], eax
mov esi, dword [esp + 0x884]
mov ebp, dword [esp + 0x888]
lea eax, [esp + 0x70]
push eax
xor ebx, ebx
push 0x800
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
push ebx
mov edi, 0xf
push ebp
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00402780
lea eax, [esp + 0x70]
mov dword [esp + 0x50], edi
mov dword [esp + 0x87c], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403b87
sub eax, edi
push eax
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x40]
call fcn.00402860
mov edx, dword [esp + 0x68]
push 1
push edx
push 0x4265f4
lea ecx, [esp + 0x60]
mov byte [esp + 0x888], 1
call fcn.00401d60
mov ecx, dword [esp + 0x68]
sub ecx, eax
sub ecx, 1
push ecx
add eax, 1
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x60]
call fcn.00402e00
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x888], 2
call fcn.00402780
mov edi, 0x10
cmp dword [esp + 0x34], edi
mov byte [esp + 0x87c], 1
jb 0x403c0f
mov eax, dword [esp + 0x20]
push eax
call fcn.00407818
add esp, 4
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00402f60
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x888], 3
call fcn.00402780
cmp dword [esp + 0x34], edi
mov byte [esp + 0x87c], 1
jb 0x403c56
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00407818
add esp, 4
cmp dword [ebp + 0x18], edi
jb 0x403c60
mov ebp, dword [ebp + 4]
jmp 0x403c63
add ebp, 4
push 0x4265f0
push ebp
call fcn.00410f83
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x403cca
push ebx
mov edi, 0xf
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push 0x4266b6
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402860
mov ebp, 0x10
cmp dword [esp + 0x50], ebp
jb 0x403caa
mov edx, dword [esp + 0x3c]
push edx
call fcn.00407818
add esp, 4
cmp dword [esp + 0x6c], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x403df9
mov eax, dword [esp + 0x58]
push eax
jmp 0x403df1
mov eax, dword [esp + 0x3c]
mov ebp, 0x10
cmp dword [esp + 0x50], ebp
jae 0x403cdd
lea eax, [esp + 0x3c]
push 0x4266f4
push eax
call fcn.00410f83
add esp, 8
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x403d4a
push edi
call fcn.00410e43
add esp, 4
push ebx
mov edi, 0xf
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push 0x4266b6
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402860
cmp dword [esp + 0x50], ebp
jb 0x403d2a
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00407818
add esp, 4
cmp dword [esp + 0x6c], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x403df9
mov edx, dword [esp + 0x58]
push edx
jmp 0x403df1
push 2
push ebx
push edi
call fcn.00412210
push edi
call fcn.0041211b
push ebx
push ebx
push edi
mov ebp, eax
call fcn.00412210
push ebp
call fcn.0040781d
push edi
push ebp
push 1
push eax
mov dword [esp + 0x44], eax
call fcn.00411f68
mov eax, dword [esp + 0x48]
push eax
push ebp
mov ebp, dword [esp + 0x4c]
push 1
push ebp
call fcn.00411c7e
add esp, 0x40
push ebp
call fcn.00407818
push edi
call fcn.00410e43
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00410e43
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x40]
mov ebp, 0xf
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402780
mov edi, 0x10
cmp dword [esp + 0x50], edi
jb 0x403dda
mov eax, dword [esp + 0x3c]
push eax
call fcn.00407818
add esp, 4
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x403df9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00407818
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x874]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x85c]
xor ecx, esp
call fcn.00410f96
add esp, 0x86c
ret