Function at 0x4a5a10
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x108
mov eax, dword [0x540a54]
xor eax, esp
mov dword [esp + 0x104], eax
cmp byte [0x5a64a0], 0
je 0x4a5a44
mov al, 1
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004dc8c2
add esp, 0x108
ret
push esi
push edi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.004dc170
add esp, 0xc
push 0x520b90
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x5a649c], eax
jne 0x4a5ae6
mov eax, 0x5a64a8
mov edx, str.cannot_load_dbghelp.dll
xor edi, edi
mov esi, 0x1000
sub edx, eax
lea ecx, [esi + 0x7fffeffe]
test ecx, ecx
je 0x4a5aa3
mov cl, byte [edx + eax]
test cl, cl
je 0x4a5aa3
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x4a5a86
jmp 0x4a5aa7
test esi, esi
jne 0x4a5aaf
sub eax, 1
mov edi, 0x8007007a
test edi, edi
mov byte [eax], 0
je 0x4a5abb
call fcn.004a6300
push 0x5a64a8
push 0x2000001
call fcn.004abbd0
add esp, 8
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004dc8c2
add esp, 0x108
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x520b64
push eax
call esi
test eax, eax
mov dword [0x5a6470], eax
je 0x4a5c37
mov edx, dword [0x5a649c]
push str.StackWalk
push edx
call esi
test eax, eax
mov dword [0x5a6474], eax
je 0x4a5c37
mov eax, dword [0x5a649c]
push str.SymFunctionTableAccess
push eax
call esi
test eax, eax
mov dword [0x5a6478], eax
je 0x4a5c37
mov ecx, dword [0x5a649c]
push str.SymGetModuleBase
push ecx
call esi
test eax, eax
mov dword [0x5a647c], eax
je 0x4a5c37
mov edx, dword [0x5a649c]
push str.SymInitialize
push edx
call esi
test eax, eax
mov dword [0x5a6480], eax
je 0x4a5c37
mov eax, dword [0x5a649c]
push str.SymSetOptions
push eax
call esi
test eax, eax
mov dword [0x5a6484], eax
je 0x4a5c37
mov ecx, dword [0x5a649c]
push str.SymGetOptions
push ecx
call esi
test eax, eax
mov dword [0x5a6488], eax
je 0x4a5c37
mov edx, dword [0x5a649c]
push str.UnDecorateSymbolName
push edx
call esi
test eax, eax
mov dword [0x5a648c], eax
je 0x4a5c37
mov eax, dword [0x5a649c]
push str.SymGetLineFromAddr
push eax
call esi
test eax, eax
mov dword [0x5a6490], eax
je 0x4a5c37
mov ecx, dword [0x5a649c]
push str.SymGetSymFromAddr
push ecx
call esi
test eax, eax
mov dword [0x5a6494], eax
je 0x4a5c37
mov edx, dword [0x5a649c]
push str.SymGetModuleInfo
push edx
call esi
test eax, eax
mov dword [0x5a6498], eax
je 0x4a5c37
call dword [0x5a6488]
and eax, 0xfffffffd
or eax, 0x414
push eax
call dword [0x5a6484]
lea eax, [esp + 8]
push eax
call fcn.004a57e0
add esp, 4
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x5a6480]
test eax, eax
jne 0x4a5cbd
mov eax, 0x5a64a8
mov edx, str.cannot_load_dbghelp.dll_:_wrong_version_or_SymInitialize_fail
xor edi, edi
mov esi, 0x1000
sub edx, eax
lea ebx, [ebx]
lea ecx, [esi + 0x7fffeffe]
test ecx, ecx
je 0x4a5c6d
mov cl, byte [edx + eax]
test cl, cl
je 0x4a5c6d
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x4a5c50
jmp 0x4a5c71
test esi, esi
jne 0x4a5c79
sub eax, 1
mov edi, 0x8007007a
test edi, edi
mov byte [eax], 0
je 0x4a5c85
call fcn.004a6300
push 0x5a64a8
push 0x2000001
call fcn.004abbd0
mov edx, dword [0x5a649c]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004dc8c2
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
mov byte [0x5a64a0], 1
mov al, 1
call fcn.004dc8c2
add esp, 0x108
ret