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

Disassembly:
sub esp, 0xa60
mov eax, dword [0x4e2204]
xor eax, esp
mov dword [esp + 0xa5c], eax
push ebx
push ebp
push esi
push edi
push 8
push str.runtime_
lea eax, [esp + 0x20]
mov esi, ecx
xor ebp, ebp
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x24], ebp
call fcn.0043c200
push 5
push str.font_
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], ebp
call fcn.0043c200
mov ecx, dword [esp + 0xa7c]
mov edx, dword [esp + 0xa74]
push esi
lea esi, [esp + 0x28]
call fcn.00486f80
mov ebx, dword [esp + 0x28]
add esp, 4
cmp ebx, ebp
je 0x487252
lea eax, [ebx + 4]
jmp 0x487254
xor eax, eax
push eax
lea eax, [esp + 0x1c]
call fcn.0043c000
cmp ebx, ebp
je 0x487267
lea eax, [ebx + 4]
jmp 0x487269
xor eax, eax
push eax
lea eax, [esp + 0x18]
call fcn.0043c000
mov eax, dword [esp + 0x18]
mov dword [esp + 0xa60], ebp
cmp eax, ebp
je 0x487287
add eax, 4
jmp 0x487289
xor eax, eax
lea edx, [esp + 0x95e]
mov byte [esp + 0x550], 0
mov byte [esp + 0x758], 0
mov byte [esp + 0x75c], 0
mov byte [esp + 0x85d], 0
mov byte [esp + 0x95e], 0
push edx
cmp eax, ebp
je 0x4872d8
lea ecx, [esp + 0x861]
push ecx
lea edx, [esp + 0x764]
push edx
lea ecx, [esp + 0x764]
push ecx
push eax
jmp 0x4872f5
lea eax, [esp + 0x861]
push eax
lea ecx, [esp + 0x764]
push ecx
lea edx, [esp + 0x764]
push edx
push 0x4cb498
call fcn.004a00bc
add esp, 0x14
lea eax, [esp + 0x550]
push ebp
push eax
call fcn.00447600
lea ecx, [esp + 0x966]
push ecx
lea edx, [esp + 0x869]
push edx
lea eax, [esp + 0x76c]
push eax
lea ecx, [esp + 0x76c]
push ecx
lea edx, [esp + 0x568]
push 0x208
push edx
call fcn.004a0108
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x20
lea eax, [esp + 0x550]
push eax
call esi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x487414
mov dword [esp + 0x54c], ebp
cmp edi, ebp
je 0x48736d
lea eax, [edi + 4]
jmp 0x48736f
xor eax, eax
mov byte [esp + 0x3c], 0
mov byte [esp + 0x244], 0
mov byte [esp + 0x248], 0
mov byte [esp + 0x349], 0
mov byte [esp + 0x44a], 0
cmp eax, ebp
je 0x4873bb
lea ecx, [esp + 0x44a]
push ecx
lea edx, [esp + 0x34d]
push edx
lea ecx, [esp + 0x250]
push ecx
lea edx, [esp + 0x250]
push edx
push eax
jmp 0x4873e0
lea eax, [esp + 0x44a]
push eax
lea ecx, [esp + 0x34d]
push ecx
lea edx, [esp + 0x250]
push edx
lea eax, [esp + 0x250]
push eax
push 0x4cb498
call fcn.004a00bc
add esp, 0x14
lea ecx, [esp + 0x550]
push ecx
lea eax, [esp + 0x40]
call fcn.00401700
lea ecx, [esp + 0x3c]
call fcn.00403870
lea edx, [esp + 0x550]
push 1
push edx
call fcn.00447600
add esp, 8
lea eax, [esp + 0x95e]
push eax
lea ecx, [esp + 0x861]
push ecx
lea edx, [esp + 0x764]
push edx
lea eax, [esp + 0x764]
push eax
lea ecx, [esp + 0x560]
push 0x208
push ecx
call fcn.004a0108
add esp, 0x18
lea edx, [esp + 0x550]
push edx
call esi
cmp eax, 0xffffffff
je 0x4874dd
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x554]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call fcn.00454d90
add esp, 4
cmp dword [esp + 0x1c], ebp
je 0x4874dd
push 0x566aa8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, 0xc4
call fcn.0045eff0
cmp eax, ebp
je 0x4874a0
mov esi, eax
call fcn.004840b0
mov ebp, eax
mov edx, dword [ebp]
mov esi, dword [esp + 0x20]
mov eax, dword [edx + 0x24]
push esi
mov ecx, ebp
mov dword [esp + 0x14], ebp
call eax
test eax, eax
je 0x4874c8
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
xor ebp, ebp
mov dword [esp + 0x10], ebp
test esi, esi
je 0x4874d1
call fcn.0045f130
test ebp, ebp
jne 0x48765f
mov edi, dword [esp + 0x14]
mov dword [esp + 0x54c], ebp
cmp edi, ebp
je 0x4874ed
lea eax, [edi + 4]
jmp 0x4874ef
xor eax, eax
mov byte [esp + 0x3c], 0
mov byte [esp + 0x244], 0
mov byte [esp + 0x248], 0
mov byte [esp + 0x349], 0
mov byte [esp + 0x44a], 0
cmp eax, ebp
je 0x48753b
lea ecx, [esp + 0x44a]
push ecx
lea edx, [esp + 0x34d]
push edx
lea ecx, [esp + 0x250]
push ecx
lea edx, [esp + 0x250]
push edx
push eax
jmp 0x487560
lea eax, [esp + 0x44a]
push eax
lea ecx, [esp + 0x34d]
push ecx
lea edx, [esp + 0x250]
push edx
lea eax, [esp + 0x250]
push eax
push 0x4cb498
call fcn.004a00bc
add esp, 0x14
lea ecx, [esp + 0x550]
push ecx
lea eax, [esp + 0x40]
call fcn.00401700
lea ecx, [esp + 0x3c]
call fcn.00403870
lea edx, [esp + 0x550]
push 1
push edx
call fcn.00447600
add esp, 8
push 0x566aa8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, 0xc4
call fcn.0045eff0
cmp eax, ebp
je 0x4875cf
mov ecx, dword [esp + 0xa7c]
fld1
mov edx, dword [esp + 0xa74]
push ecx
push ecx
mov ecx, dword [esp + 0x30]
fstp dword [esp]
push edx
push ecx
call fcn.00483f80
mov ebp, eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x1c]
mov ecx, ebp
mov dword [esp + 0x10], ebp
call eax
mov edi, eax
test edi, edi
jne 0x4875ed
xor esi, esi
mov dword [esp + 0x20], esi
xor ebx, ebx
jmp 0x487600
call fcn.0045eff0
mov ebx, eax
neg ebx
sbb ebx, ebx
mov dword [esp + 0x20], eax
and ebx, edi
mov esi, eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x20]
push esi
mov ecx, ebp
call eax
lea ecx, [esp + 0x550]
call fcn.0045f950
push 1
lea edi, [esp + 0x554]
lea eax, [esp + 0x30]
call fcn.00490920
mov eax, dword [esp + 0x30]
test eax, eax
je 0x487641
push 0
lea ecx, [esp + 0x2c]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
call fcn.00490980
test ebx, ebx
je 0x48765b
mov esi, dword [esp + 0x20]
test esi, esi
je 0x48765b
call fcn.0045f130
mov ebx, dword [esp + 0x24]
fld dword [esp + 0xa78]
push ecx
mov esi, ebp
fstp dword [esp]
call fcn.00484710
lea edx, [esp + 0x10]
push edx
call fcn.00487a30
lea ecx, [esp + 0x550]
call fcn.00403870
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test ebx, ebx
je 0x4876b4
push ebx
call edi
and eax, 0xff
cmp eax, 0x80
jl 0x4876a9
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4876b4
test eax, eax
jne 0x4876b4
mov esi, ebx
call fcn.0045f130
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4876dd
push esi
call edi
and eax, 0xff
cmp eax, 0x80
jl 0x4876d4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4876dd
test eax, eax
jne 0x4876dd
call fcn.0045f130
mov esi, dword [esp + 0x18]
test esi, esi
je 0x487706
push esi
call edi
and eax, 0xff
cmp eax, 0x80
jl 0x4876fd
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x487706
test eax, eax
jne 0x487706
call fcn.0045f130
mov ecx, dword [esp + 0xa6c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049ca20
add esp, 0xa60
ret