Function at 0x40bca0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45a696
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0x864]
mov dword fs:[0], eax
call fcn.0042a820
xor ebx, ebx
test eax, eax
je 0x40beef
cmp dword [0x471ee4], ebx
lea ebp, [ebx + 8]
je 0x40bd37
cmp dword [0x471f04], ebp
mov ecx, dword [0x471ef0]
jae 0x40bd08
mov ecx, 0x471ef0
cmp dword [0x471fd4], ebp
mov eax, dword [0x471fc0]
jae 0x40bd1a
mov eax, 0x471fc0
push 0x46031c
push ecx
push eax
push str.___sSysDir____sBin_s_
push 0x208
push 0x104
lea eax, [esp + 0x64]
push eax
jmp 0x40bd77
cmp dword [0x472060], ebp
mov ecx, dword [0x47204c]
jae 0x40bd4a
mov ecx, 0x47204c
cmp dword [0x471fd4], ebp
mov eax, dword [0x471fc0]
jae 0x40bd5c
mov eax, 0x471fc0
push 0x46031c
push ecx
push eax
push str.___sSysDir____sBin_s_
push 0x208
push 0x104
lea ecx, [esp + 0x64]
push ecx
call fcn.0043ef21
mov eax, dword [0x471fc0]
add esp, 0x1c
cmp dword [0x471fd4], ebp
jae 0x40bd91
mov eax, 0x471fc0
push eax
push str._sSysDirInstAsm.exe
push 0x208
lea edx, [esp + 0x260]
push 0x104
push edx
call fcn.0043ef21
mov eax, dword [0x471fc0]
add esp, 0x14
cmp dword [0x471fd4], ebp
jae 0x40bdc3
mov eax, 0x471fc0
push eax
lea edx, [esp + 0x50]
lea ecx, [esp + 0x258]
call fcn.00429ed0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x874]
push eax
push 0x460ea0
push 0x400
lea eax, [esp + 0x468]
push 0x200
push eax
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x30]
call fcn.0042a750
mov dword [esp + 0x86c], ebx
mov edi, 7
lea eax, [esp + 0x45c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40be30
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x460]
push ecx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov edx, esi
push ebx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x38]
mov byte [esp + 0x874], 1
call fcn.00406d90
cmp dword [esp + 0x2c], ebp
jb 0x40be7c
mov eax, dword [esp + 0x18]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x48], ebp
mov edx, dword [esp + 0x34]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
jae 0x40be97
lea edx, [esp + 0x34]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x40bed1
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bea6
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 dword [esp + 0x86c], 0xffffffff
cmp dword [esp + 0x48], ebp
jb 0x40beef
mov eax, dword [esp + 0x34]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [0x471ee4], ebx
je 0x40bf0b
push 0x6977
mov ecx, 1
call fcn.00418f60
add esp, 4
jmp 0x40bf26
call fcn.00406bc0
fld dword [0x46643c]
mov ecx, dword [eax + 0x40]
push ecx
push ecx
fstp dword [esp]
call fcn.0040b580
add esp, 8
mov ecx, dword [esp + 0x864]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.0043ef12
add esp, 0x85c
ret