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

Disassembly:
push 0xffffffffffffffff
push 0x4283c1
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x434284]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x434284]
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.00416860
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x413e37
push 0x208
call fcn.00416860
add esp, 4
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x413dee
push 0x208
call fcn.00416860
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x34], edi
je 0x413dee
push 0x800
push ebx
push ebp
call fcn.0041b5e0
mov eax, dword [esp + 0x34]
add esp, 0xc
push 0x208
push ebx
push eax
call fcn.0041b5e0
add esp, 0xc
push 0x208
push ebx
push edi
call fcn.0041b5e0
mov eax, dword [esi + 0x3c]
add esp, 0xc
cmp eax, 1
jae 0x4138ec
cmp dword [esi + 0x24], 8
jb 0x4138c9
mov eax, dword [esi + 0x10]
jmp 0x4138cc
lea eax, [esi + 0x10]
push 0x42d6e0
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00417c83
add esp, 0xc
test eax, eax
jne 0x413dee
jmp 0x413a6f
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 0x430024
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x42d6e8
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00417c83
add esp, 0xc
test eax, eax
jne 0x413dee
cmp dword [esi + 0x24], 8
jb 0x413934
mov eax, dword [esi + 0x10]
jmp 0x413937
lea eax, [esi + 0x10]
push 0x42d6e0
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00417c83
add esp, 0xc
test eax, eax
jne 0x413dee
mov eax, dword [esp + 0x1c]
push 2
push ebx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00417aa4
mov edx, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00418cf4
mov eax, dword [esp + 0x24]
push ebx
push ebx
push eax
call fcn.00417aa4
add esp, 0x14
cmp dword [esp + 0x30], ebx
jl 0x413dee
mov eax, dword [esp + 0x2c]
jg 0x4139a0
cmp eax, ebx
jbe 0x413dee
cmp eax, ebx
jg 0x4139a9
mov eax, 1
push eax
call fcn.00416860
add esp, 4
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x413dee
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jg 0x4139cb
mov eax, 1
push eax
call fcn.00416860
add esp, 4
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x413dee
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.00417903
mov edi, dword [esp + 0x3c]
add esp, 0x10
cmp eax, edi
jne 0x413a6f
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
push ecx
call fcn.00412db0
mov edi, eax
add esp, 4
test edi, edi
je 0x413a6d
lea eax, [esi + 0x28]
lea ecx, [esp + 0x3c]
call fcn.00413130
cmp dword [eax + 0x18], 0x10
jb 0x413a2f
mov esi, dword [eax + 4]
jmp 0x413a32
lea esi, [eax + 4]
mov ecx, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
call fcn.00412c50
add esp, 4
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.00403ea0
mov edx, dword [esp + 0x18]
push edx
push esi
push 1
push edi
call fcn.00417e9e
mov eax, dword [esp + 0x28]
push 0
push 0
push eax
call fcn.00417aa4
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.00418c00
add esp, 0xc
test eax, eax
je 0x413d5a
lea ebx, [ebx]
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x413ad5
sub eax, edx
sar eax, 1
cmp eax, 1
jb 0x413d3f
cmp word [ebp], 0xfeff
jne 0x413b4d
mov eax, ebp
xor ecx, ecx
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x413b00
sub eax, edi
sar eax, 1
add eax, 0xffffffff
test eax, eax
jle 0x413b48
jmp 0x413b20
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 0x413b32
sub eax, edi
sar eax, 1
add eax, 0xffffffff
cmp ecx, eax
jl 0x413b20
mov word [ebp + ecx*2], bx
movzx edx, word [ebp]
cmp dx, 0x23
je 0x413d3f
cmp dx, 0x5b
jne 0x413bab
mov eax, ebp
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x413b66
sub eax, edi
sar eax, 1
cmp word [ebp + eax*2 - 6], 0x5d
jne 0x413bab
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x413b82
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.00403f70
jmp 0x413d3f
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 0x413c03
movzx eax, dx
lea esp, [esp]
cmp ax, 0x3d
je 0x413c03
movzx eax, word [ebp + edi*2 + 2]
add edi, 1
cmp ax, bx
jne 0x413bf0
push edi
push ebp
lea esi, [esp + 0xf8]
call fcn.004151a0
cmp word [ebp + edi*2], bx
je 0x413c66
lea esi, [edi + 1]
movzx ecx, word [ebp + esi*2]
cmp cx, bx
lea edi, [ebp + esi*2]
mov eax, esi
je 0x413c66
movzx ecx, cx
mov edx, edi
mov ebx, 0xa
cmp cx, 0xd
jne 0x413c41
cmp word [edx + 2], bx
je 0x413c52
add eax, 1
movzx ecx, word [ebp + eax*2]
test cx, cx
lea edx, [ebp + eax*2]
jne 0x413c35
cmp eax, esi
je 0x413c66
sub eax, esi
push eax
push edi
lea esi, [esp + 0xdc]
call fcn.004151a0
lea ecx, [esp + 0xb8]
push ecx
mov ebx, 0x43002c
lea esi, [esp + 0x68]
call fcn.00404a50
add esp, 4
lea edx, [esp + 0xf0]
push edx
push eax
lea edi, [esp + 0x44]
mov byte [esp + 0x120], 4
call fcn.00404b30
add esp, 8
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x120], 5
call fcn.004040a0
mov esi, edi
call fcn.00403f40
lea esi, [esp + 0x64]
mov byte [esp + 0x118], 3
call fcn.00403f40
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.004152b0
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x58]
push ecx
push edx
mov ebx, eax
mov byte [esp + 0x120], 6
call fcn.00414cd0
lea esi, [esp + 0x64]
call fcn.00413e90
push 0x800
push 0
push ebp
call fcn.0041b5e0
add esp, 0xc
lea esi, [esp + 0xd4]
call fcn.00403f40
lea esi, [esp + 0xf0]
mov byte [esp + 0x118], 1
call fcn.00403f40
mov esi, 7
xor ebx, ebx
mov eax, dword [esp + 0x18]
push eax
push 0x400
push ebp
call fcn.00418c00
add esp, 0xc
test eax, eax
jne 0x413ad0
mov edi, 8
cmp dword [esp + 0xb4], edi
jb 0x413d78
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.00416abb
add esp, 4
cmp dword [esp + 0xd0], edi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
jb 0x413da7
mov edx, dword [esp + 0xbc]
push edx
call fcn.00416abb
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x413dbc
push eax
call fcn.004179a1
add esp, 4
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x413dd1
push eax
call fcn.004179a1
add esp, 4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x3c], ebx
jbe 0x413de5
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.004170f7
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, ebx
je 0x413e08
push eax
call fcn.004170f7
add esp, 4
cmp edi, ebx
je 0x413e15
push edi
call fcn.004170f7
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x413e26
push eax
call fcn.004170f7
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x413e37
push eax
call fcn.004170f7
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x413e48
push eax
call fcn.004179a1
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x413e59
push eax
call fcn.004179a1
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.004170e8
add esp, 0x108
ret