Function at 0x4bc470
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x27c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c04b0
mov edi, dword [ebp + 0x10]
xor ebx, ebx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test edi, edi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x4bc760
mov esi, dword [ebp + 0x14]
cmp esi, 4
ja 0x4bc760
lea ebx, [ebp - 0x288]
push 0x200
push 0
push ebx
call fcn.0061e8c0
add esp, 0xc
push esi
push str._ZoneTransfer__r_nZoneId_u_r_n
push 0x200
push ebx
call fcn.004bc9d0
add esp, 0x10
test eax, eax
js 0x4bc75e
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x88]
mov dword [edi], 0
push 0x65db88
push eax
push esi
call fcn.005dfd60
add esp, 0xc
cmp dword [ebp - 0x74], 7
jbe 0x4bc515
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0x10], 5
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x4bc71c
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x20]
inc edx
xor ecx, ecx
cmp edx, 2
jb 0x4bc55c
mov dword [ebp - 0x28], eax
call fcn.0040e440
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4bc71c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], 0
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], 0
mov dword [ebp - 0x10], 6
push ecx
push eax
call fcn.0042e9e0
add esp, 8
test al, al
je 0x4bc67b
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x24], eax
push ecx
push eax
call fcn.0042e9e0
add esp, 8
xor ebx, ebx
cmp dword [ebp - 0x60], 0
je 0x4bc7e1
mov esi, dword [ebp - 0x20]
xor al, 1
jne 0x4bc680
cmp dword [ebp - 0x48], 0
je 0x4bc680
mov dword [ebp - 0x24], esi
lea ecx, [ebp - 0x40]
push 0x65db88
lea eax, [ebp - 0x70]
push eax
push ecx
call fcn.005dfd60
add esp, 0xc
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x40]
jbe 0x4bc613
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 7
lea eax, [ebp - 0x58]
jbe 0x4bc61f
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x10], 7
push ecx
push eax
call fcn.005d3f0e
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov esi, eax
lea edi, [ebp - 0x288]
cmp ecx, 8
jb 0x4bc673
mov eax, dword [ebp - 0x40]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4bc669
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bc80d
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
test esi, esi
je 0x4bc776
mov esi, dword [ebp - 0x20]
xor ebx, ebx
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x4bc6bb
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4bc6b1
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bc7f5
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x4bc6f6
mov eax, dword [ebp - 0x70]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4bc6ec
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bc801
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
test esi, esi
je 0x4bc71e
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x28], ebx
call fcn.0040e440
push dword [ebp - 0x20]
call fcn.0040f9e0
mov ebx, dword [ebp - 0x28]
add esp, 4
jmp 0x4bc71e
xor ebx, ebx
mov ecx, dword [ebp - 0x74]
cmp ecx, 8
jb 0x4bc760
mov eax, dword [ebp - 0x88]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4bc752
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bc7e9
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
jmp 0x4bc760
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x27c
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.006289d0
add esp, 4
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x10], 6
lea edx, [ebp - 0x40]
mov dword [ebp - 0x24], ecx
push 0
push edx
mov dword [ebp - 0x28], eax
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
test eax, eax
je 0x4bc7e1
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
cmp dword [ebp - 0x40], eax
jne 0x4bc680
mov dword [ebp - 0x24], esi
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 0x24], 0
call fcn.0040e440
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov bl, 1
xor esi, esi
mov dword [ecx], eax
jmp 0x4bc680
mov esi, dword [ebp - 0x20]
jmp 0x4bc680
mov dword [ebp - 0x10], 4
call fcn.006207e0
mov dword [ebp - 0x10], 1
call fcn.006207e0
mov dword [ebp - 0x10], 2
call fcn.006207e0
mov dword [ebp - 0x10], 0
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4bc89e
mov eax, dword [ebp - 0x40]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4bc894
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bc8bd
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], 0
mov dword [ebp - 0x24], eax
add esp, 0x1c
pop ebp
ret
call fcn.006207e0
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
mov ecx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x24]
cmp ecx, 8
jb 0x4bc921
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4bc917
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bc96f
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x4bc958
mov eax, dword [ebp - 0x70]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4bc94e
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bc96f
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
test esi, esi
je 0x4bc96a
call fcn.0040e440
push esi
call fcn.0040f9e0
add esp, 4
add esp, 0x1c
pop ebp
ret
call fcn.006207e0
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x1c
add ebp, 0xc
mov ecx, dword [ebp - 0x74]
cmp ecx, 8
jb 0x4bc9c1
mov eax, dword [ebp - 0x88]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4bc9b7
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bc9c6
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x1c
pop ebp
ret
call fcn.006207e0
int3