Function at 0x41f286
Capabilities:
Get common file path
Link many functions at runtime
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.004e4da0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004e4da0
add esp, 0x18
inc dword [0x5a2704]
cmp dword [0x5a24b4], ebx
je 0x41f2d6
xor eax, eax
jmp 0x41f7f1
push edi
push str.LCLib.dll
push ebx
push ebx
call fcn.0047cdb0
pop ecx
pop ecx
push eax
push 0x50d2a0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004a0ddb
add esp, 0x14
mov edi, str.libcrypto_1_1.dll
push ebx
push edi
push ebx
call fcn.0047cdb0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00429cf7
add esp, 0xc
test eax, eax
je 0x41f33c
push ebx
push edi
push ebx
call fcn.0047ced0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00429cf7
add esp, 0xc
test eax, eax
jne 0x41f384
cmp dword [0x5a2708], ebx
jne 0x41f384
lea eax, [ebp - 0x20c]
push eax
call fcn.0042916f
pop ecx
test eax, eax
je 0x41f364
push edi
push str.:0:FYI:Failed_to_respawn__s
call fcn.00425c08
pop ecx
pop ecx
jmp 0x41f384
push str.LCLib.dll
push ebx
call fcn.0047cdb0
push eax
call fcn.0042916f
push eax
push edi
push str.:9:FAILED_TO_CREATE__s:__d
call fcn.004255b9
add esp, 0x18
push str.LSLib.dll
push ebx
push ebx
call fcn.0047cdb0
pop ecx
pop ecx
push eax
push 0x50d2a0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004a0ddb
add esp, 0x14
mov edi, str.libssl_1_1.dll
push ebx
push edi
push ebx
call fcn.0047cdb0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00429cf7
add esp, 0xc
test eax, eax
je 0x41f3e9
push ebx
push edi
push ebx
call fcn.0047ced0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00429cf7
add esp, 0xc
test eax, eax
jne 0x41f433
cmp dword [0x5a2708], ebx
jne 0x41f433
lea eax, [ebp - 0x20c]
push eax
call fcn.0042916f
pop ecx
test eax, eax
je 0x41f411
push edi
push str.:0:FYI:Failed_to_respawn__s
call fcn.00425c08
pop ecx
pop ecx
jmp 0x41f43d
push str.LSLib.dll
push ebx
call fcn.0047cdb0
push eax
call fcn.0042916f
push eax
push edi
push str.:9:FAILED_TO_CREATE__s:__d
call fcn.004255b9
add esp, 0x18
jmp 0x41f43d
mov dword [0x5a2708], 1
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41f481
lea eax, [ebp - 0x108]
push eax
call fcn.004a03e7
lea eax, [ebp - 0x108]
mov dword [esp], 0x50aeb0
push eax
call fcn.004a0ea0
pop ecx
pop ecx
test eax, eax
jne 0x41f481
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, str.PNLibc2.dll
push edi
push ebx
push ebx
call fcn.0047cdb0
pop ecx
pop ecx
push eax
push 0x50d2a0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004a0ddb
add esp, 0x14
push edi
push ebx
push ebx
call fcn.0047ced0
pop ecx
pop ecx
push eax
push 0x50d2a0
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004a0ddb
push 1
lea eax, [ebp - 0x108]
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042718f
add esp, 0x24
test eax, eax
jne 0x41f51d
push ebx
push ebx
call fcn.0047ced0
push eax
call fcn.00429152
add esp, 0xc
test eax, eax
jne 0x41f51d
push ebx
push ebx
push ebx
call fcn.0047ced0
pop ecx
pop ecx
push eax
call fcn.004280f8
push 1
lea eax, [ebp - 0x108]
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042718f
add esp, 0x18
call fcn.0040ead4
test eax, eax
je 0x41f52e
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea eax, [ebp - 0x108]
push 8
push ebx
push eax
call edi
mov esi, eax
test esi, esi
jne 0x41f64c
push str.PNLibc2.dll
push 0x50b870
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004a0ddb
add esp, 0x10
push str.PNLibc2.dll
push ebx
push ebx
call fcn.0047ced0
pop ecx
pop ecx
push eax
push 0x50d2a0
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004a0ddb
push 1
lea eax, [ebp - 0x108]
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042718f
add esp, 0x24
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x41f64c
push str.PNLibc2.dll
push ebx
push ebx
call fcn.0047cdb0
pop ecx
pop ecx
push eax
push 0x50d2a0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004a0ddb
add esp, 0x14
lea eax, [ebp - 0x108]
push 8
push ebx
push eax
call edi
mov esi, eax
test esi, esi
jne 0x41f63b
lea eax, [ebp - 0x108]
push eax
call fcn.0042916f
test eax, eax
lea eax, [ebp - 0x108]
pop ecx
je 0x41f620
push str._GetLastError_
push eax
push str.:7:curl_global_init___FAILED:_LoadLibrary___s___FAILED:_The_DLL_exists_but_could_not_be_loaded:__s
call fcn.004255b9
add esp, 0xc
jmp 0x41f62d
push eax
push str.:7:curl_global_init___FAILED:_LoadLibrary___s___FAILED:_The_DLL_could_not_be_found_
call fcn.004255b9
pop ecx
pop ecx
dec dword [0x5a2704]
push 2
pop eax
jmp 0x41f7f0
push str.PNLibc2.dll
push str.:7:curl_global_init___had_to_load__s_directly_from_the_source_
call fcn.004255b9
pop ecx
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.curl_global_init
push esi
call edi
test eax, eax
jne 0x41f66e
push str.curl_global_init___FAILED:_GetProcAddress__curl_global_init___FAILED.
call fcn.004255b9
pop ecx
push 2
pop ebx
jmp 0x41f687
push dword [ebp + 8]
call eax
mov ebx, eax
pop ecx
test ebx, ebx
je 0x41f69b
push ebx
push str.:8:curl_global_init___FAILED:_Returned__ld.
call fcn.004255b9
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
dec dword [0x5a2704]
mov eax, ebx
jmp 0x41f7f0
push str.curl_easy_init
push esi
call edi
mov dword [0x5a2004], eax
test eax, eax
jne 0x41f6b7
push str.:7:curl_global_init___FAILED:_curl_easy_init___could_not_be_loaded.
call fcn.004255b9
pop ecx
push str.curl_easy_setopt
push esi
call edi
mov dword [0x5a2008], eax
test eax, eax
jne 0x41f6d3
push str.:7:curl_global_init___FAILED:_curl_easy_setopt___could_not_be_loaded.
call fcn.004255b9
pop ecx
push str.curl_easy_perform
push esi
call edi
mov dword [0x5a200c], eax
test eax, eax
jne 0x41f6ef
push str.:7:curl_global_init___FAILED:_curl_easy_perform___could_not_be_loaded.
call fcn.004255b9
pop ecx
push str.curl_easy_cleanup
push esi
call edi
mov dword [0x5a2010], eax
test eax, eax
jne 0x41f70b
push str.:7:curl_global_init___FAILED:_curl_easy_cleanup___could_not_be_loaded.
call fcn.004255b9
pop ecx
push str.curl_easy_escape
push esi
call edi
mov dword [0x5a2014], eax
test eax, eax
jne 0x41f727
push str.:7:curl_global_init___FAILED:_curl_easy_escape___could_not_be_loaded.
call fcn.004255b9
pop ecx
push str.curl_free
push esi
call edi
mov dword [0x5a2018], eax
test eax, eax
jne 0x41f743
push str.:7:curl_global_init___FAILED:_curl_free___could_not_be_loaded.
call fcn.004255b9
pop ecx
push str.curl_easy_getinfo
push esi
call edi
mov dword [0x5a201c], eax
test eax, eax
jne 0x41f75f
push str.:7:curl_global_init___FAILED:_curl_easy_getinfo___could_not_be_loaded.
call fcn.004255b9
pop ecx
push str.curl_formadd
push esi
call edi
mov dword [0x5a2020], eax
test eax, eax
jne 0x41f77b
push str.:7:curl_global_init___FAILED:_curl_formadd___could_not_be_loaded.
call fcn.004255b9
pop ecx
push str.curl_slist_append
push esi
call edi
mov dword [0x5a2024], eax
test eax, eax
jne 0x41f797
push str.:7:curl_global_init___FAILED:_curl_slist_append___could_not_be_loaded.
call fcn.004255b9
pop ecx
push str.curl_formfree
push esi
call edi
mov dword [0x5a2028], eax
test eax, eax
jne 0x41f7b3
push str.:7:curl_global_init___FAILED:_curl_formfree___could_not_be_loaded.
call fcn.004255b9
pop ecx
push str.curl_slist_free_all
push esi
call edi
mov dword [0x5a202c], eax
test eax, eax
jne 0x41f7cf
push str.:7:curl_global_init___FAILED:_curl_slist_free_all___could_not_be_loaded.
call fcn.004255b9
pop ecx
push 0x104
lea eax, [ebp - 0x108]
mov dword [0x5a24b4], esi
push eax
push 0x5a2600
call fcn.004a11a5
add esp, 0xc
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret