Function at 0x40de30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4651d2
mov eax, dword fs:[0]
push eax
mov eax, 0x10e0
call fcn.004405d0
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x10dc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x10f4]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x1104]
mov esi, dword [esp + 0x1108]
xor ebp, ebp
cmp ecx, ebp
je 0x40e229
cmp esi, ebp
je 0x40e229
mov ebx, 0xf
mov eax, ecx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xe8], ebp
mov byte [esp + 0xd8], 0
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40deb0
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0xdc]
call fcn.00408130
mov eax, esi
mov dword [esp + 0x10fc], ebp
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xcc], ebp
mov byte [esp + 0xbc], 0
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40def0
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0xc0]
call fcn.00408130
mov edx, dword [esp + 0xec]
mov ebx, dword [esp + 0xd8]
mov byte [esp + 0x10fc], 1
mov eax, ebx
cmp edx, 0x10
jae 0x40df2b
lea eax, [esp + 0xd8]
mov ecx, dword [esp + 0xe8]
lea edi, [ecx + eax]
cmp edi, ebp
je 0x40df5f
mov eax, ebx
cmp edx, 0x10
jae 0x40df47
lea eax, [esp + 0xd8]
cmp eax, edi
ja 0x40df5f
mov eax, ebx
cmp edx, 0x10
jae 0x40df59
lea eax, [esp + 0xd8]
add eax, ecx
cmp edi, eax
jbe 0x40df79
call fcn.0043c958
mov edx, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
mov ebx, dword [esp + 0xd8]
cmp edx, 0x10
jb 0x40e14c
mov esi, ebx
cmp ebx, ebp
je 0x40dfae
mov eax, ebx
cmp edx, 0x10
jae 0x40df96
lea eax, [esp + 0xd8]
cmp eax, esi
ja 0x40dfae
mov eax, ebx
cmp edx, 0x10
jae 0x40dfa8
lea eax, [esp + 0xd8]
add eax, ecx
cmp esi, eax
jbe 0x40dfba
call fcn.0043c958
mov ebx, dword [esp + 0xd8]
mov eax, esi
cmp esi, edi
je 0x40dfd4
cmp byte [eax], 0x5c
jne 0x40dfc8
mov byte [eax], 0x2f
inc eax
cmp eax, edi
jne 0x40dfc0
mov ebx, dword [esp + 0xd8]
mov edx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xbc]
mov eax, ecx
cmp edx, 0x10
jae 0x40dff0
lea eax, [esp + 0xbc]
mov ebp, dword [esp + 0xcc]
lea edi, [eax + ebp]
test edi, edi
je 0x40e024
mov eax, ecx
cmp edx, 0x10
jae 0x40e00c
lea eax, [esp + 0xbc]
cmp eax, edi
ja 0x40e024
mov eax, ecx
cmp edx, 0x10
jae 0x40e01e
lea eax, [esp + 0xbc]
add eax, ebp
cmp edi, eax
jbe 0x40e045
call fcn.0043c958
mov ebx, dword [esp + 0xd8]
mov edx, dword [esp + 0xd0]
mov ebp, dword [esp + 0xcc]
mov ecx, dword [esp + 0xbc]
cmp edx, 0x10
jb 0x40e158
mov esi, ecx
test ecx, ecx
je 0x40e07a
mov eax, ecx
cmp edx, 0x10
jae 0x40e062
lea eax, [esp + 0xbc]
cmp eax, esi
ja 0x40e07a
mov eax, ecx
cmp edx, 0x10
jae 0x40e074
lea eax, [esp + 0xbc]
add eax, ebp
cmp esi, eax
jbe 0x40e094
call fcn.0043c958
mov ebx, dword [esp + 0xd8]
mov edx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xbc]
mov eax, esi
cmp esi, edi
je 0x40e0c2
lea ebx, [ebx]
cmp byte [eax], 0x5c
jne 0x40e0a8
mov byte [eax], 0x2f
inc eax
cmp eax, edi
jne 0x40e0a0
mov ebx, dword [esp + 0xd8]
mov edx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xbc]
mov esi, 0x10
cmp edx, esi
jae 0x40e0d2
lea ecx, [esp + 0xbc]
mov eax, ebx
cmp dword [esp + 0xec], esi
jae 0x40e0e4
lea eax, [esp + 0xd8]
push ecx
push eax
call fcn.0044163e
add esp, 8
test eax, eax
jne 0x40e164
cmp dword [esp + 0xd0], esi
jb 0x40e10b
mov eax, dword [esp + 0xbc]
push eax
call fcn.0041f6a2
add esp, 4
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], 0
mov byte [esp + 0xbc], 0
cmp dword [esp + 0xec], esi
jb 0x40e142
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.0041f6a2
add esp, 4
mov eax, 1
jmp 0x40e22b
lea esi, [esp + 0xd8]
jmp 0x40df88
lea esi, [esp + 0xbc]
jmp 0x40e054
cmp dword [esp + 0x110c], 0
je 0x40e199
mov eax, dword [esp + 0xbc]
cmp dword [esp + 0xd0], esi
jae 0x40e185
lea eax, [esp + 0xbc]
push 0
push eax
call fcn.00413190
add esp, 8
cmp eax, 0xffffffff
jne 0x40e2b2
mov eax, dword [esp + 0xd8]
cmp dword [esp + 0xec], esi
jae 0x40e1b0
lea eax, [esp + 0xd8]
push 0x46ab50
push eax
call fcn.0043cbf8
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
mov byte [esp + 0x10fc], 2
test edi, edi
je 0x40e211
mov eax, dword [esp + 0xbc]
cmp dword [esp + 0xd0], esi
jae 0x40e1e7
lea eax, [esp + 0xbc]
push 0x46ab4c
push eax
call fcn.0043cbf8
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
mov bl, 3
mov byte [esp + 0x10fc], bl
push edi
test ebp, ebp
jne 0x40e253
call fcn.0043cc86
add esp, 4
lea ecx, [esp + 0xb8]
call fcn.00408840
lea ecx, [esp + 0xd4]
call fcn.00408840
xor eax, eax
mov ecx, dword [esp + 0x10f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10dc]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x10ec
ret
call fcn.004414c8
add esp, 4
test eax, eax
jne 0x40e2a3
nop
push edi
push 0x1000
lea edx, [esp + 0xf8]
push 1
push edx
call fcn.004414ab
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x40e296
push ebp
push esi
lea eax, [esp + 0xf8]
push 1
push eax
call fcn.00441189
add esp, 0x10
cmp eax, esi
jne 0x40e2d4
push edi
call fcn.004414c8
add esp, 4
test eax, eax
je 0x40e260
push ebp
call fcn.0043cc86
push edi
call fcn.0043cc86
add esp, 8
lea ecx, [esp + 0xb8]
call fcn.00408840
lea ecx, [esp + 0xd4]
call fcn.00408840
mov eax, 1
jmp 0x40e22b
push 1
push 2
lea ecx, [esp + 0x40]
call fcn.00407d10
lea ecx, [esp + 0x38]
push 0x46ab40
push ecx
mov byte [esp + 0x1104], 4
call fcn.004052a0
add esp, 8
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x3c]
call fcn.004048a0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x10fc], 5
jb 0x40e31c
mov eax, dword [eax + 4]
jmp 0x40e31f
add eax, 4
push eax
push str.BaseLib::CxxCopyFile
push 0x294
push str..common_function.cpp
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
lea ecx, [esp + 0x1c]
call fcn.00408840
lea ecx, [esp + 0x38]
mov byte [esp + 0x10fc], bl
call fcn.004055a0
push ebp
call fcn.0043cc86
push edi
call fcn.0043cc86
add esp, 8
jmp 0x40e211