Function at 0x487630
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.0043c500
push 5
push str.font_
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], ebp
call fcn.0043c500
mov ecx, dword [esp + 0xa7c]
mov edx, dword [esp + 0xa74]
push esi
lea esi, [esp + 0x28]
call fcn.004873d0
mov ebx, dword [esp + 0x28]
add esp, 4
cmp ebx, ebp
je 0x4876a2
lea eax, [ebx + 4]
jmp 0x4876a4
xor eax, eax
push eax
lea eax, [esp + 0x1c]
call fcn.0043c300
cmp ebx, ebp
je 0x4876b7
lea eax, [ebx + 4]
jmp 0x4876b9
xor eax, eax
push eax
lea eax, [esp + 0x18]
call fcn.0043c300
mov eax, dword [esp + 0x18]
mov dword [esp + 0xa60], ebp
cmp eax, ebp
je 0x4876d7
add eax, 4
jmp 0x4876d9
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 0x487728
lea ecx, [esp + 0x861]
push ecx
lea edx, [esp + 0x764]
push edx
lea ecx, [esp + 0x764]
push ecx
push eax
jmp 0x487745
lea eax, [esp + 0x861]
push eax
lea ecx, [esp + 0x764]
push ecx
lea edx, [esp + 0x764]
push edx
push 0x4cb498
call fcn.004a055c
add esp, 0x14
lea eax, [esp + 0x550]
push ebp
push eax
call fcn.00447920
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.004a05a8
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 0x487864
mov dword [esp + 0x54c], ebp
cmp edi, ebp
je 0x4877bd
lea eax, [edi + 4]
jmp 0x4877bf
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 0x48780b
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 0x487830
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.004a055c
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.00447920
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.004a05a8
add esp, 0x18
lea edx, [esp + 0x550]
push edx
call esi
cmp eax, 0xffffffff
je 0x48792d
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x554]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call fcn.004550a0
add esp, 4
cmp dword [esp + 0x1c], ebp
je 0x48792d
push 0x567098
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, 0xc4
call fcn.0045f460
cmp eax, ebp
je 0x4878f0
mov esi, eax
call fcn.00484500
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 0x487918
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 0x487921
call fcn.0045f5a0
test ebp, ebp
jne 0x487aaf
mov edi, dword [esp + 0x14]
mov dword [esp + 0x54c], ebp
cmp edi, ebp
je 0x48793d
lea eax, [edi + 4]
jmp 0x48793f
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 0x48798b
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 0x4879b0
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.004a055c
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.00447920
add esp, 8
push 0x567098
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, 0xc4
call fcn.0045f460
cmp eax, ebp
je 0x487a1f
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.004843d0
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 0x487a3d
xor esi, esi
mov dword [esp + 0x20], esi
xor ebx, ebx
jmp 0x487a50
call fcn.0045f460
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.0045fdc0
push 1
lea edi, [esp + 0x554]
lea eax, [esp + 0x30]
call fcn.00490db0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x487a91
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.00490e10
test ebx, ebx
je 0x487aab
mov esi, dword [esp + 0x20]
test esi, esi
je 0x487aab
call fcn.0045f5a0
mov ebx, dword [esp + 0x24]
fld dword [esp + 0xa78]
push ecx
mov esi, ebp
fstp dword [esp]
call fcn.00484b60
lea edx, [esp + 0x10]
push edx
call fcn.00487e80
lea ecx, [esp + 0x550]
call fcn.00403870
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test ebx, ebx
je 0x487b04
push ebx
call edi
and eax, 0xff
cmp eax, 0x80
jl 0x487af9
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x487b04
test eax, eax
jne 0x487b04
mov esi, ebx
call fcn.0045f5a0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x487b2d
push esi
call edi
and eax, 0xff
cmp eax, 0x80
jl 0x487b24
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x487b2d
test eax, eax
jne 0x487b2d
call fcn.0045f5a0
mov esi, dword [esp + 0x18]
test esi, esi
je 0x487b56
push esi
call edi
and eax, 0xff
cmp eax, 0x80
jl 0x487b4d
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x487b56
test eax, eax
jne 0x487b56
call fcn.0045f5a0
mov ecx, dword [esp + 0xa6c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049ceb0
add esp, 0xa60
ret