Function at 0x435430
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x478713
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x4eec64]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x468]
push 8
xor edi, edi
push str.runtime_
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
call fcn.004017a0
mov ecx, dword [esp + 0x474]
mov edx, dword [esp + 0x46c]
push ebx
lea esi, [esp + 0x34]
mov dword [esp + 0x464], edi
call fcn.00435140
add esp, 4
mov byte [esp + 0x460], 1
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x4354c3
add eax, 4
jmp 0x4354c5
xor eax, eax
push eax
lea ecx, [esp + 0x20]
call fcn.004014a0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44c], edi
cmp eax, edi
je 0x4354e3
add eax, 4
jmp 0x4354e5
xor eax, eax
push eax
lea ecx, [esp + 0x48]
call fcn.00419670
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x464], 2
call fcn.00403b20
add esp, 4
lea ecx, [esp + 0x34b]
push ecx
lea edx, [esp + 0x24f]
push edx
lea eax, [esp + 0x153]
push eax
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x54]
xor esi, esi
push edx
mov dword [esp + 0x2c], esi
call fcn.0045f443
add esp, 0x14
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x435603
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x28]
push ecx
mov bl, 3
lea ecx, [esp + 0x48]
mov byte [esp + 0x464], bl
call fcn.004211a0
mov ebp, dword [esp + 0x2c]
add esp, 4
cmp ebp, edi
mov edi, dword [esp + 0x2c]
je 0x4355dc
push 0x4f85e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0xb4
call fcn.00402560
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x460], 4
test eax, eax
je 0x4355ab
push eax
call fcn.004324e0
mov esi, eax
jmp 0x4355ad
xor esi, esi
mov byte [esp + 0x460], bl
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
mov ecx, esi
mov dword [esp + 0x1c], esi
call eax
test eax, eax
je 0x4355d8
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
mov byte [esp + 0x460], 2
test ebp, ebp
je 0x4355f5
test edi, edi
je 0x4355f5
push edi
call fcn.00402770
add esp, 4
test esi, esi
jne 0x4356e9
mov ebx, dword [esp + 0x20]
xor edi, edi
push 0x4f85e0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0xb4
call fcn.00402560
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x460], 5
cmp eax, edi
je 0x43564c
mov ecx, dword [esp + 0x474]
fld1
mov edx, dword [esp + 0x46c]
push ecx
push ecx
fstp dword [esp]
push edx
push ebx
push eax
call fcn.00432380
mov esi, eax
jmp 0x43564e
xor esi, esi
mov byte [esp + 0x460], 2
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
mov dword [esp + 0x18], esi
call edx
mov edi, eax
test edi, edi
jne 0x43566f
xor ebx, ebx
xor ebp, ebp
jmp 0x435682
push edi
call fcn.00402560
mov ebx, eax
add esp, 4
mov ebp, ebx
neg ebp
sbb ebp, ebp
and ebp, edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x460], 6
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push ebx
mov ecx, esi
call edx
push 1
lea edi, [esp + 0x48]
lea eax, [esp + 0x38]
call fcn.0043cf90
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4356c3
push 0
lea ecx, [esp + 0x2c]
push ecx
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x34]
call fcn.0043cff0
mov byte [esp + 0x460], 2
test ebp, ebp
je 0x4356e5
test ebx, ebx
je 0x4356e5
push ebx
call fcn.00402770
add esp, 4
mov esi, dword [esp + 0x18]
fld dword [esp + 0x470]
push ecx
fstp dword [esp]
call fcn.00432be0
lea edx, [esp + 0x18]
push edx
call fcn.00435ba0
mov byte [esp + 0x460], 1
mov ecx, dword [esp + 0x44c]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test ecx, ecx
je 0x435751
mov eax, dword [ecx]
and eax, 0xff
cmp eax, 0x80
jae 0x435739
push ecx
call ebx
mov ecx, dword [esp + 0x44c]
and eax, 0xff
test eax, eax
jne 0x435746
push ecx
call fcn.00402770
add esp, 4
mov dword [esp + 0x44c], 0
mov byte [esp + 0x460], 0
mov edi, dword [esp + 0x30]
test edi, edi
je 0x435784
mov eax, dword [edi]
and eax, 0xff
cmp eax, 0x80
jae 0x435777
push edi
call ebx
and eax, 0xff
test eax, eax
jne 0x435784
push edi
call fcn.00402770
add esp, 4
mov dword [esp + 0x460], 0xffffffff
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4357ba
mov eax, dword [edi]
and eax, 0xff
cmp eax, 0x80
jae 0x4357ad
push edi
call ebx
and eax, 0xff
test eax, eax
jne 0x4357ba
push edi
call fcn.00402770
add esp, 4
mov eax, esi
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.0045c0ce
add esp, 0x450
ret