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

Disassembly:
push 0xffffffffffffffff
push 0x435751
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x443284]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x443284]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
push 0x800
mov dword [esp + 0x3c], esi
mov byte [esp + 0x1b], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
xor edi, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0041ee32
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4168f5
push 0x208
call fcn.0041ee32
add esp, 4
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x4168ac
push 0x208
call fcn.0041ee32
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x34], edi
je 0x4168ac
push 0x800
push ebx
push ebp
call fcn.00424a50
mov eax, dword [esp + 0x34]
add esp, 0xc
push 0x208
push ebx
push eax
call fcn.00424a50
add esp, 0xc
push 0x208
push ebx
push edi
call fcn.00424a50
mov eax, dword [esi + 0x3c]
add esp, 0xc
cmp eax, 1
jae 0x4163ac
cmp dword [esi + 0x24], 8
jb 0x416389
mov eax, dword [esi + 0x10]
jmp 0x41638c
lea eax, [esi + 0x10]
push 0x43bf38
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0041f92f
add esp, 0xc
test eax, eax
jne 0x4168ac
jmp 0x41652f
mov edx, dword [esp + 0x28]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0x28]
push edi
push ebx
push 0x43bf40
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x43b3b0
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0041f92f
add esp, 0xc
test eax, eax
jne 0x4168ac
cmp dword [esi + 0x24], 8
jb 0x4163f4
mov eax, dword [esi + 0x10]
jmp 0x4163f7
lea eax, [esi + 0x10]
push 0x43bf38
push eax
lea edx, [esp + 0x24]
push edx
call fcn.0041f92f
add esp, 0xc
test eax, eax
jne 0x4168ac
mov eax, dword [esp + 0x1c]
push 2
push ebx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00421d7a
mov edx, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00421c88
mov eax, dword [esp + 0x24]
push ebx
push ebx
push eax
call fcn.00421d7a
add esp, 0x14
cmp dword [esp + 0x30], ebx
jl 0x4168ac
mov eax, dword [esp + 0x2c]
jg 0x416460
cmp eax, ebx
jbe 0x4168ac
cmp eax, ebx
jg 0x416469
mov eax, 1
push eax
call fcn.0041ee32
add esp, 4
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x4168ac
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jg 0x41648b
mov eax, 1
push eax
call fcn.0041ee32
add esp, 4
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x4168ac
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push ecx
push edx
push 1
push eax
call fcn.004208ab
mov edi, dword [esp + 0x3c]
add esp, 0x10
cmp eax, edi
jne 0x41652f
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
push ecx
call fcn.00412c30
mov edi, eax
add esp, 4
test edi, edi
je 0x41652d
lea eax, [esi + 0x28]
lea ecx, [esp + 0x3c]
call fcn.004122d0
cmp dword [eax + 0x18], 0x10
jb 0x4164ef
mov esi, dword [eax + 4]
jmp 0x4164f2
lea esi, [eax + 4]
mov ecx, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
call fcn.00412b20
add esp, 4
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.00401850
mov edx, dword [esp + 0x18]
push edx
push esi
push 1
push edi
call fcn.00420cf5
mov eax, dword [esp + 0x28]
push 0
push 0
push eax
call fcn.00421d7a
add esp, 0x1c
xor ebx, ebx
mov esi, 7
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
mov dword [esp + 0x118], ebx
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
mov byte [esp + 0x118], 1
mov ecx, dword [esp + 0x18]
push ecx
push 0x400
push ebp
call fcn.00421b94
add esp, 0xc
test eax, eax
je 0x416818
lea ebx, [ebx]
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416595
sub eax, edx
sar eax, 1
cmp eax, 1
jb 0x4167fd
cmp word [ebp], 0xfeff
jne 0x41660d
mov eax, ebp
xor ecx, ecx
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4165c0
sub eax, edi
sar eax, 1
add eax, 0xffffffff
test eax, eax
jle 0x416608
jmp 0x4165e0
mov dx, word [ebp + ecx*2 + 2]
mov eax, ebp
mov word [ebp + ecx*2], dx
add ecx, 1
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4165f2
sub eax, edi
sar eax, 1
add eax, 0xffffffff
cmp ecx, eax
jl 0x4165e0
mov word [ebp + ecx*2], bx
movzx edx, word [ebp]
cmp dx, 0x23
je 0x4167fd
cmp dx, 0x5b
jne 0x41666b
mov eax, ebp
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416626
sub eax, edi
sar eax, 1
cmp word [ebp + eax*2 - 6], 0x5d
jne 0x41666b
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416642
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 6], bx
lea eax, [esp + 0xb8]
lea edx, [ebp + 2]
push eax
call fcn.00401920
jmp 0x4167fd
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], bx
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], bx
xor edi, edi
cmp dx, bx
mov byte [esp + 0x118], 3
je 0x4166c3
movzx eax, dx
lea esp, [esp]
cmp ax, 0x3d
je 0x4166c3
movzx eax, word [ebp + edi*2 + 2]
add edi, 1
cmp ax, bx
jne 0x4166b0
push edi
push ebp
lea esi, [esp + 0xf8]
call fcn.00416cd0
cmp word [ebp + edi*2], bx
je 0x416726
lea esi, [edi + 1]
movzx ecx, word [ebp + esi*2]
cmp cx, bx
lea edi, [ebp + esi*2]
mov eax, esi
je 0x416726
movzx ecx, cx
mov edx, edi
mov ebx, 0xa
cmp cx, 0xd
jne 0x416701
cmp word [edx + 2], bx
je 0x416712
add eax, 1
movzx ecx, word [ebp + eax*2]
test cx, cx
lea edx, [ebp + eax*2]
jne 0x4166f5
cmp eax, esi
je 0x416726
sub eax, esi
push eax
push edi
lea esi, [esp + 0xdc]
call fcn.00416cd0
lea ecx, [esp + 0xb8]
push ecx
mov ebx, 0x43bf48
lea esi, [esp + 0x68]
call fcn.00402310
add esp, 4
lea edx, [esp + 0xf0]
push edx
push eax
lea edi, [esp + 0x44]
mov byte [esp + 0x120], 4
call fcn.004023c0
add esp, 8
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x120], 5
call fcn.00401a50
mov ecx, edi
call fcn.004018f0
mov ecx, esi
mov byte [esp + 0x118], 3
call fcn.004018f0
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.0040fd60
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x58]
push ecx
push edx
mov ebx, eax
mov byte [esp + 0x120], 6
call fcn.0040fa70
lea esi, [esp + 0x64]
call fcn.0040b6d0
push 0x800
push 0
push ebp
call fcn.00424a50
add esp, 0xc
lea ecx, [esp + 0xd4]
call fcn.004018f0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x118], 1
call fcn.004018f0
mov esi, 7
xor ebx, ebx
mov eax, dword [esp + 0x18]
push eax
push 0x400
push ebp
call fcn.00421b94
add esp, 0xc
test eax, eax
jne 0x416590
mov edi, 8
cmp dword [esp + 0xb4], edi
jb 0x416836
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0041f829
add esp, 4
cmp dword [esp + 0xd0], edi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
jb 0x416865
mov edx, dword [esp + 0xbc]
push edx
call fcn.0041f829
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x41687a
push eax
call fcn.00420024
add esp, 4
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41688f
push eax
call fcn.00420024
add esp, 4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x3c], ebx
jbe 0x4168a3
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x34]
mov byte [esp + 0x17], 1
push ebp
call fcn.004200a0
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, ebx
je 0x4168c6
push eax
call fcn.004200a0
add esp, 4
cmp edi, ebx
je 0x4168d3
push edi
call fcn.004200a0
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4168e4
push eax
call fcn.004200a0
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4168f5
push eax
call fcn.004200a0
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x416906
push eax
call fcn.00420024
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x416917
push eax
call fcn.00420024
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.0041f134
add esp, 0x108
ret