Function at 0x40cc0c
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 [0x496980]
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.00440bf0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00440bf0
add esp, 0x18
inc dword [0x49eb24]
cmp dword [0x49e8d4], ebx
je 0x40cc5c
xor eax, eax
jmp 0x40d177
push edi
push str.LCLib.dll
push ebx
push ebx
call fcn.0042734e
pop ecx
pop ecx
push eax
push 0x465c7c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042ef5e
add esp, 0x14
mov edi, str.libcrypto_1_1.dll
push ebx
push edi
push ebx
call fcn.0042734e
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00410b39
add esp, 0xc
test eax, eax
je 0x40ccc2
push ebx
push edi
push ebx
call fcn.00427507
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00410b39
add esp, 0xc
test eax, eax
jne 0x40cd0a
cmp dword [0x49eb28], ebx
jne 0x40cd0a
lea eax, [ebp - 0x20c]
push eax
call fcn.0041007a
pop ecx
test eax, eax
je 0x40ccea
push edi
push str.:0:FYI:Failed_to_respawn__s
call fcn.0040d7f3
pop ecx
pop ecx
jmp 0x40cd0a
push str.LCLib.dll
push ebx
call fcn.0042734e
push eax
call fcn.0041007a
push eax
push edi
push str.:9:FAILED_TO_CREATE__s:__d
call fcn.0040d324
add esp, 0x18
push str.LSLib.dll
push ebx
push ebx
call fcn.0042734e
pop ecx
pop ecx
push eax
push 0x465c7c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042ef5e
add esp, 0x14
mov edi, str.libssl_1_1.dll
push ebx
push edi
push ebx
call fcn.0042734e
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00410b39
add esp, 0xc
test eax, eax
je 0x40cd6f
push ebx
push edi
push ebx
call fcn.00427507
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00410b39
add esp, 0xc
test eax, eax
jne 0x40cdb9
cmp dword [0x49eb28], ebx
jne 0x40cdb9
lea eax, [ebp - 0x20c]
push eax
call fcn.0041007a
pop ecx
test eax, eax
je 0x40cd97
push edi
push str.:0:FYI:Failed_to_respawn__s
call fcn.0040d7f3
pop ecx
pop ecx
jmp 0x40cdc3
push str.LSLib.dll
push ebx
call fcn.0042734e
push eax
call fcn.0041007a
push eax
push edi
push str.:9:FAILED_TO_CREATE__s:__d
call fcn.0040d324
add esp, 0x18
jmp 0x40cdc3
mov dword [0x49eb28], 1
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40ce07
lea eax, [ebp - 0x108]
push eax
call fcn.0042e684
lea eax, [ebp - 0x108]
mov dword [esp], 0x464cb8
push eax
call fcn.0042f023
pop ecx
pop ecx
test eax, eax
jne 0x40ce07
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.0042734e
pop ecx
pop ecx
push eax
push 0x465c7c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042ef5e
add esp, 0x14
push edi
push ebx
push ebx
call fcn.00427507
pop ecx
pop ecx
push eax
push 0x465c7c
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0042ef5e
push 1
lea eax, [ebp - 0x108]
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e95d
add esp, 0x24
test eax, eax
jne 0x40cea3
push ebx
push ebx
call fcn.00427507
push eax
call fcn.0041005d
add esp, 0xc
test eax, eax
jne 0x40cea3
push ebx
push ebx
push ebx
call fcn.00427507
pop ecx
pop ecx
push eax
call fcn.0040f36d
push 1
lea eax, [ebp - 0x108]
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e95d
add esp, 0x18
call fcn.00405e25
test eax, eax
je 0x40ceb4
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 0x40cfd2
push str.PNLibc2.dll
push 0x465678
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042ef5e
add esp, 0x10
push str.PNLibc2.dll
push ebx
push ebx
call fcn.00427507
pop ecx
pop ecx
push eax
push 0x465c7c
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0042ef5e
push 1
lea eax, [ebp - 0x108]
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e95d
add esp, 0x24
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40cfd2
push str.PNLibc2.dll
push ebx
push ebx
call fcn.0042734e
pop ecx
pop ecx
push eax
push 0x465c7c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0042ef5e
add esp, 0x14
lea eax, [ebp - 0x108]
push 8
push ebx
push eax
call edi
mov esi, eax
test esi, esi
jne 0x40cfc1
lea eax, [ebp - 0x108]
push eax
call fcn.0041007a
test eax, eax
lea eax, [ebp - 0x108]
pop ecx
je 0x40cfa6
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.0040d324
add esp, 0xc
jmp 0x40cfb3
push eax
push str.:7:curl_global_init___FAILED:_LoadLibrary___s___FAILED:_The_DLL_could_not_be_found_
call fcn.0040d324
pop ecx
pop ecx
dec dword [0x49eb24]
push 2
pop eax
jmp 0x40d176
push str.PNLibc2.dll
push str.:7:curl_global_init___had_to_load__s_directly_from_the_source_
call fcn.0040d324
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 0x40cff4
push str.curl_global_init___FAILED:_GetProcAddress__curl_global_init___FAILED.
call fcn.0040d324
pop ecx
push 2
pop ebx
jmp 0x40d00d
push dword [ebp + 8]
call eax
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40d021
push ebx
push str.:8:curl_global_init___FAILED:_Returned__ld.
call fcn.0040d324
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
dec dword [0x49eb24]
mov eax, ebx
jmp 0x40d176
push str.curl_easy_init
push esi
call edi
mov dword [0x49e424], eax
test eax, eax
jne 0x40d03d
push str.:7:curl_global_init___FAILED:_curl_easy_init___could_not_be_loaded.
call fcn.0040d324
pop ecx
push str.curl_easy_setopt
push esi
call edi
mov dword [0x49e428], eax
test eax, eax
jne 0x40d059
push str.:7:curl_global_init___FAILED:_curl_easy_setopt___could_not_be_loaded.
call fcn.0040d324
pop ecx
push str.curl_easy_perform
push esi
call edi
mov dword [0x49e42c], eax
test eax, eax
jne 0x40d075
push str.:7:curl_global_init___FAILED:_curl_easy_perform___could_not_be_loaded.
call fcn.0040d324
pop ecx
push str.curl_easy_cleanup
push esi
call edi
mov dword [0x49e430], eax
test eax, eax
jne 0x40d091
push str.:7:curl_global_init___FAILED:_curl_easy_cleanup___could_not_be_loaded.
call fcn.0040d324
pop ecx
push str.curl_easy_escape
push esi
call edi
mov dword [0x49e434], eax
test eax, eax
jne 0x40d0ad
push str.:7:curl_global_init___FAILED:_curl_easy_escape___could_not_be_loaded.
call fcn.0040d324
pop ecx
push str.curl_free
push esi
call edi
mov dword [0x49e438], eax
test eax, eax
jne 0x40d0c9
push str.:7:curl_global_init___FAILED:_curl_free___could_not_be_loaded.
call fcn.0040d324
pop ecx
push str.curl_easy_getinfo
push esi
call edi
mov dword [0x49e43c], eax
test eax, eax
jne 0x40d0e5
push str.:7:curl_global_init___FAILED:_curl_easy_getinfo___could_not_be_loaded.
call fcn.0040d324
pop ecx
push str.curl_formadd
push esi
call edi
mov dword [0x49e440], eax
test eax, eax
jne 0x40d101
push str.:7:curl_global_init___FAILED:_curl_formadd___could_not_be_loaded.
call fcn.0040d324
pop ecx
push str.curl_slist_append
push esi
call edi
mov dword [0x49e444], eax
test eax, eax
jne 0x40d11d
push str.:7:curl_global_init___FAILED:_curl_slist_append___could_not_be_loaded.
call fcn.0040d324
pop ecx
push str.curl_formfree
push esi
call edi
mov dword [0x49e448], eax
test eax, eax
jne 0x40d139
push str.:7:curl_global_init___FAILED:_curl_formfree___could_not_be_loaded.
call fcn.0040d324
pop ecx
push str.curl_slist_free_all
push esi
call edi
mov dword [0x49e44c], eax
test eax, eax
jne 0x40d155
push str.:7:curl_global_init___FAILED:_curl_slist_free_all___could_not_be_loaded.
call fcn.0040d324
pop ecx
push 0x104
lea eax, [ebp - 0x108]
mov dword [0x49e8d4], esi
push eax
push 0x49ea20
call fcn.0042f204
add esp, 0xc
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f5c5
leave
ret