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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x5c4e68]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call fcn.005117f0
add esp, 0xc
push esi
lea eax, [esp + 0x11d]
push ebx
push eax
mov byte [esp + 0x124], bl
call fcn.005117f0
add esp, 0xc
inc dword [0x5de484]
cmp dword [0x5de480], ebx
jne 0x42276a
push str.LCLib.dll
push ebx
push ebx
call fcn.00489f49
pop ecx
pop ecx
push eax
push 0x533dd4
inc esi
lea eax, [esp + 0x124]
push esi
push eax
call fcn.004c53b7
add esp, 0x14
push ebx
mov edi, str.libcrypto_1_1.dll
push edi
push ebx
call fcn.00489f49
pop ecx
pop ecx
push eax
lea eax, [esp + 0x120]
push eax
call fcn.0042a5f2
add esp, 0xc
test eax, eax
je 0x422267
push ebx
push edi
push ebx
call fcn.0048a119
pop ecx
pop ecx
push eax
lea eax, [esp + 0x120]
push eax
call fcn.0042a5f2
add esp, 0xc
test eax, eax
jne 0x4222b7
cmp dword [0x5de58c], ebx
jne 0x4222b7
lea edi, [esp + 0x118]
call fcn.0042ad00
test eax, eax
je 0x422292
push str.libcrypto_1_1.dll
push str.:0:FYI:Failed_to_respawn__s
call fcn.00426c01
pop ecx
pop ecx
jmp 0x4222b7
push str.LCLib.dll
push ebx
call fcn.00489f49
mov edi, eax
call fcn.0042ad00
push eax
push str.libcrypto_1_1.dll
push str.:9:FAILED_TO_CREATE__s:__d
call fcn.004265da
add esp, 0x14
push str.LSLib.dll
push ebx
push ebx
call fcn.00489f49
pop ecx
pop ecx
push eax
push 0x533dd4
lea eax, [esp + 0x124]
push esi
push eax
call fcn.004c53b7
add esp, 0x14
push ebx
mov edi, str.libssl_1_1.dll
push edi
push ebx
call fcn.00489f49
pop ecx
pop ecx
push eax
lea eax, [esp + 0x120]
push eax
call fcn.0042a5f2
add esp, 0xc
test eax, eax
je 0x42231f
push ebx
push edi
push ebx
call fcn.0048a119
pop ecx
pop ecx
push eax
lea eax, [esp + 0x120]
push eax
call fcn.0042a5f2
add esp, 0xc
test eax, eax
jne 0x422371
cmp dword [0x5de58c], ebx
jne 0x422371
lea edi, [esp + 0x118]
call fcn.0042ad00
test eax, eax
je 0x42234a
push str.libssl_1_1.dll
push str.:0:FYI:Failed_to_respawn__s
call fcn.00426c01
pop ecx
pop ecx
jmp 0x42237b
push str.LSLib.dll
push ebx
call fcn.00489f49
mov edi, eax
call fcn.0042ad00
push eax
push str.libssl_1_1.dll
push str.:9:FAILED_TO_CREATE__s:__d
call fcn.004265da
add esp, 0x14
jmp 0x42237b
mov dword [0x5de58c], 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x4223b6
lea edx, [esp + 0x10]
call fcn.004c470f
mov eax, edx
push eax
mov esi, 0x532eb0
call fcn.004c3ca1
test eax, eax
pop ecx
jne 0x4223b1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, 0x104
call fcn.0048a508
test eax, eax
mov eax, str.PNLibc.dll
jne 0x4223c9
mov eax, str.PNLibc2.dll
push eax
push ebx
push ebx
call fcn.00489f49
pop ecx
pop ecx
push eax
mov edi, 0x533dd4
push edi
lea eax, [esp + 0x124]
push esi
push eax
call fcn.004c53b7
add esp, 0x14
call fcn.0048a508
test eax, eax
mov eax, str.PNLibc.dll
jne 0x4223fe
mov eax, str.PNLibc2.dll
push eax
push ebx
push ebx
call fcn.0048a119
pop ecx
pop ecx
push eax
push edi
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004c53b7
add esp, 0x14
push 1
lea eax, [esp + 0x14]
push eax
push eax
lea eax, [esp + 0x124]
push eax
call fcn.0042ab09
add esp, 0x10
test eax, eax
jne 0x422472
push ebx
push ebx
call fcn.0048a119
push eax
call fcn.0042adad
add esp, 0xc
test eax, eax
jne 0x422472
push ebx
push ebx
push ebx
call fcn.0048a119
pop ecx
pop ecx
mov ecx, eax
call fcn.0042b0ca
pop ecx
push 1
lea eax, [esp + 0x14]
push eax
push eax
lea eax, [esp + 0x124]
push eax
call fcn.0042ab09
add esp, 0x10
call fcn.00415e85
test eax, eax
je 0x422483
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 8
push ebx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x4225c7
call fcn.0048a508
test eax, eax
mov eax, str.PNLibc.dll
jne 0x4224ae
mov eax, str.PNLibc2.dll
push eax
push 0x5304c0
lea eax, [esp + 0x120]
push esi
push eax
call fcn.004c53b7
add esp, 0x10
call fcn.0048a508
test eax, eax
mov eax, str.PNLibc.dll
jne 0x4224d8
mov eax, str.PNLibc2.dll
push eax
push ebx
push ebx
call fcn.0048a119
pop ecx
pop ecx
push eax
push 0x533dd4
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004c53b7
add esp, 0x14
push 1
lea eax, [esp + 0x14]
push eax
push eax
lea eax, [esp + 0x124]
push eax
call fcn.0042ab09
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4225c7
call fcn.0048a508
test eax, eax
mov eax, str.PNLibc.dll
jne 0x422536
mov eax, str.PNLibc2.dll
push eax
push ebx
push ebx
call fcn.00489f49
pop ecx
pop ecx
push eax
push 0x533dd4
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004c53b7
add esp, 0x14
push 8
push ebx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x4225a7
lea edi, [esp + 0x10]
call fcn.0042ad00
test eax, eax
mov eax, edi
je 0x42258c
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.004265da
add esp, 0xc
jmp 0x422599
push eax
push str.:7:curl_global_init___FAILED:_LoadLibrary___s___FAILED:_The_DLL_could_not_be_found_
call fcn.004265da
pop ecx
pop ecx
dec dword [0x5de484]
push 2
pop eax
jmp 0x42276c
call fcn.0048a508
test eax, eax
mov eax, str.PNLibc.dll
jne 0x4225ba
mov eax, str.PNLibc2.dll
push eax
push str.:7:curl_global_init___had_to_load__s_directly_from_the_source_
call fcn.004265da
pop ecx
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.curl_global_init
push edi
call esi
cmp eax, ebx
jne 0x4225fb
push str.curl_global_init___FAILED:_GetProcAddress__curl_global_init___FAILED.
call fcn.004265da
pop ecx
push 2
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
dec dword [0x5de484]
mov eax, esi
jmp 0x42276c
push 3
call eax
cmp eax, ebx
pop ecx
mov dword [esp + 0xc], eax
je 0x42261b
push eax
push str.:8:curl_global_init___FAILED:_Returned__ld.
call fcn.004265da
mov esi, dword [esp + 0x14]
pop ecx
pop ecx
jmp 0x4225e7
push str.curl_easy_init
push edi
call esi
cmp eax, ebx
mov dword [0x5dde88], eax
jne 0x422637
push str.:7:curl_global_init___FAILED:_curl_easy_init___could_not_be_loaded.
call fcn.004265da
pop ecx
push str.curl_easy_setopt
push edi
call esi
cmp eax, ebx
mov dword [0x5dde8c], eax
jne 0x422653
push str.:7:curl_global_init___FAILED:_curl_easy_setopt___could_not_be_loaded.
call fcn.004265da
pop ecx
push str.curl_easy_perform
push edi
call esi
cmp eax, ebx
mov dword [0x5dde90], eax
jne 0x42266f
push str.:7:curl_global_init___FAILED:_curl_easy_perform___could_not_be_loaded.
call fcn.004265da
pop ecx
push str.curl_easy_cleanup
push edi
call esi
cmp eax, ebx
mov dword [0x5dde94], eax
jne 0x42268b
push str.:7:curl_global_init___FAILED:_curl_easy_cleanup___could_not_be_loaded.
call fcn.004265da
pop ecx
push str.curl_easy_escape
push edi
call esi
cmp eax, ebx
mov dword [0x5dde98], eax
jne 0x4226a7
push str.:7:curl_global_init___FAILED:_curl_easy_escape___could_not_be_loaded.
call fcn.004265da
pop ecx
push str.curl_free
push edi
call esi
cmp eax, ebx
mov dword [0x5dde9c], eax
jne 0x4226c3
push str.:7:curl_global_init___FAILED:_curl_free___could_not_be_loaded.
call fcn.004265da
pop ecx
push str.curl_easy_getinfo
push edi
call esi
cmp eax, ebx
mov dword [0x5ddea0], eax
jne 0x4226df
push str.:7:curl_global_init___FAILED:_curl_easy_getinfo___could_not_be_loaded.
call fcn.004265da
pop ecx
push str.curl_formadd
push edi
call esi
cmp eax, ebx
mov dword [0x5ddea4], eax
jne 0x4226fb
push str.:7:curl_global_init___FAILED:_curl_formadd___could_not_be_loaded.
call fcn.004265da
pop ecx
push str.curl_slist_append
push edi
call esi
cmp eax, ebx
mov dword [0x5ddea8], eax
jne 0x422717
push str.:7:curl_global_init___FAILED:_curl_slist_append___could_not_be_loaded.
call fcn.004265da
pop ecx
push str.curl_formfree
push edi
call esi
cmp eax, ebx
mov dword [0x5ddeac], eax
jne 0x422733
push str.:7:curl_global_init___FAILED:_curl_formfree___could_not_be_loaded.
call fcn.004265da
pop ecx
push str.curl_slist_free_all
push edi
call esi
cmp eax, ebx
mov dword [0x5ddeb0], eax
jne 0x42274f
push str.:7:curl_global_init___FAILED:_curl_slist_free_all___could_not_be_loaded.
call fcn.004265da
pop ecx
lea eax, [esp + 0x10]
push eax
mov ecx, 0x104
mov eax, 0x5de488
mov dword [0x5de480], edi
call fcn.004c3b66
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051291c
mov esp, ebp
pop ebp
ret