Function at 0x41e390
Capabilities:
Check for peb beingdebugged flag
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x459cbc
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov eax, dword [esp + 0x468]
mov ebp, dword [esp + 0x46c]
mov dword [esp + 0x18], eax
call fcn.00406b10
push eax
mov eax, ebp
call fcn.00406b10
push eax
push 0x462f44
push 0x400
lea eax, [esp + 0x64]
push 0x200
push eax
call fcn.0043ef21
add esp, 0x18
lea ecx, [esp + 0x38]
call fcn.0042a750
xor ebx, ebx
mov dword [esp + 0x460], ebx
mov edi, 7
lea eax, [esp + 0x54]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41e432
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x58]
push ecx
lea esi, [esp + 0x24]
call fcn.00406f20
mov edx, esi
push ebx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x468], 1
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x34], esi
jb 0x41e480
mov eax, dword [esp + 0x20]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jae 0x41e49b
lea edx, [esp + 0x3c]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x41e4e0
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41e4b0
sub eax, esi
sar eax, 1
push edi
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.0043fe21
mov edx, dword [0x471b30]
push edx
call fcn.004402ef
add esp, 0x14
mov esi, 8
or edi, 0xffffffff
mov dword [esp + 0x460], edi
cmp dword [esp + 0x50], esi
jb 0x41e4fd
mov eax, dword [esp + 0x3c]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [0x471e70], ebx
je 0x41e564
push ebx
push 0x4606f4
lea esi, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.00406f20
push ebp
mov dword [esp + 0x464], 2
call fcn.0041cb40
add esp, 4
mov dword [esp + 0x460], edi
cmp dword [esp + 0x50], 8
mov esi, eax
jb 0x41e556
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0043ef40
add esp, 4
cmp esi, ebx
je 0x41e564
mov eax, 2
jmp 0x41e623
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x14], ebx
je 0x41e621
lea edi, [esp + 0x1c]
call fcn.0041df30
mov dword [esp + 0x460], 3
cmp dword [esp + 0x30], ebx
jne 0x41e5a6
cmp dword [esp + 0x34], 8
jb 0x41e59f
mov edx, dword [esp + 0x20]
push edx
call fcn.0043ef40
add esp, 4
mov eax, 3
jmp 0x41e623
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x41e5b5
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41e5fb
mov edx, ebp
mov ecx, esi
call fcn.0041c980
test eax, eax
je 0x41e5de
lea ecx, [esp + 0x1c]
call fcn.00406ab0
mov eax, 4
jmp 0x41e623
push ebp
call fcn.0041cb40
add esp, 4
test eax, eax
je 0x41e618
lea ecx, [esp + 0x1c]
call fcn.00406ab0
mov eax, 5
jmp 0x41e623
push ebp
call fcn.0041cb40
add esp, 4
test eax, eax
je 0x41e618
lea ecx, [esp + 0x1c]
call fcn.00406ab0
mov eax, 6
jmp 0x41e623
lea ecx, [esp + 0x1c]
call fcn.00406ab0
xor eax, eax
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0043ef12
add esp, 0x450
ret