Function at 0x474d10
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x108
mov eax, dword [0x4f5160]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.004a2b10
add esp, 0xc
cmp byte [0x4f9d44], 0
je 0x474d5d
mov al, 1
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0049d2c8
add esp, 0x108
ret
push esi
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4f9d40], eax
jne 0x474dd4
mov eax, 0x4f9d50
mov edx, str.cannot_load_dbghelp.dll
mov esi, 0x1000
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x474db2
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x474d83
sub eax, 1
mov byte [eax], 0
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0049d2c8
add esp, 0x108
ret
test esi, esi
jne 0x474db9
sub eax, 1
mov byte [eax], 0
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0049d2c8
add esp, 0x108
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MiniDumpWriteDump
push eax
call esi
test eax, eax
mov dword [0x4f9d14], eax
je 0x474f1d
mov ecx, dword [0x4f9d40]
push str.StackWalk
push ecx
call esi
test eax, eax
mov dword [0x4f9d18], eax
je 0x474f1d
mov edx, dword [0x4f9d40]
push str.SymFunctionTableAccess
push edx
call esi
test eax, eax
mov dword [0x4f9d1c], eax
je 0x474f1d
mov eax, dword [0x4f9d40]
push str.SymGetModuleBase
push eax
call esi
test eax, eax
mov dword [0x4f9d20], eax
je 0x474f1d
mov ecx, dword [0x4f9d40]
push str.SymInitialize
push ecx
call esi
test eax, eax
mov dword [0x4f9d24], eax
je 0x474f1d
mov edx, dword [0x4f9d40]
push str.SymSetOptions
push edx
call esi
test eax, eax
mov dword [0x4f9d28], eax
je 0x474f1d
mov eax, dword [0x4f9d40]
push str.SymGetOptions
push eax
call esi
test eax, eax
mov dword [0x4f9d2c], eax
je 0x474f1d
mov ecx, dword [0x4f9d40]
push str.UnDecorateSymbolName
push ecx
call esi
test eax, eax
mov dword [0x4f9d30], eax
je 0x474f1d
mov edx, dword [0x4f9d40]
push str.SymGetLineFromAddr
push edx
call esi
test eax, eax
mov dword [0x4f9d34], eax
je 0x474f1d
mov eax, dword [0x4f9d40]
push str.SymGetSymFromAddr
push eax
call esi
test eax, eax
mov dword [0x4f9d38], eax
je 0x474f1d
mov ecx, dword [0x4f9d40]
push str.SymGetModuleInfo
push ecx
call esi
test eax, eax
mov dword [0x4f9d3c], eax
je 0x474f1d
call dword [0x4f9d2c]
and eax, 0xfffffffd
or eax, 0x414
push eax
call dword [0x4f9d28]
lea esi, [esp + 4]
call fcn.00474920
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4f9d24]
test eax, eax
jne 0x474f72
mov eax, 0x4f9d50
mov edx, str.cannot_load_dbghelp.dll_:_wrong_version_or_SymInitialize_fail
mov esi, 0x1000
sub edx, eax
mov edi, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x474f43
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x474f30
jmp 0x474f47
test esi, esi
jne 0x474f4a
sub eax, 1
mov edx, dword [0x4f9d40]
push edx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0049d2c8
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
mov byte [0x4f9d44], 1
mov al, 1
call fcn.0049d2c8
add esp, 0x108
ret