Function at 0x416dc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
xor edi, edi
mov dword [ebp - 0x14], edi
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x416e61
jmp 0x416df0
movzx eax, word [esi + 0x2c]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov edx, 0x457a08
mov eax, dword [esi + 0x30]
push 1
mov dword [ebp - 0x18], eax
call fcn.00412a30
test al, al
jne 0x416e18
mov esi, dword [esi]
cmp esi, edi
jne 0x416df0
jmp 0x416e61
test esi, esi
je 0x416e61
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x416e61
movzx eax, word [esi + 0x2c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov edx, 0x457a10
mov eax, dword [esi + 0x30]
push 1
mov dword [ebp - 0xc], eax
call fcn.00412a30
test al, al
jne 0x416e59
mov esi, dword [esi]
cmp esi, edi
jne 0x416e31
jmp 0x416e61
test esi, esi
jne 0x417134
mov eax, 0x4579e0
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov edi, edi
mov ecx, eax
call fcn.004198c0
mov edi, eax
test edi, edi
je 0x416f9e
mov esi, dword [edi]
add esi, dword [0x457a08]
mov edx, dword [0x458d34]
lea ecx, [esi + 0xa]
call fcn.00412330
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 8]
mov dword [ebp - 0x18], ebx
mov dword [ebx + 4], eax
mov dword [ebx], esi
mov word [eax + esi], cx
push dword [edi]
push dword [edi + 4]
push dword [ebx + 4]
call fcn.0042ea70
mov eax, dword [edi]
add esp, 0xc
add eax, dword [ebx + 4]
push dword [0x457a08]
push dword [0x457a0c]
push eax
call fcn.0042ea70
mov esi, dword [edi]
add esp, 0xc
add esi, dword [0x457a10]
mov edx, dword [0x458d34]
lea ecx, [esi + 0xa]
call fcn.00412330
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 8]
mov dword [ebx + 4], eax
mov dword [ebx], esi
mov word [eax + esi], cx
push dword [edi]
push dword [edi + 4]
push dword [ebx + 4]
call fcn.0042ea70
mov eax, dword [ebx + 4]
add esp, 0xc
add eax, dword [edi]
push dword [0x457a10]
push dword [0x457a14]
push eax
call fcn.0042ea70
mov esi, dword [ebp - 0x18]
add esp, 0xc
push dword [esi + 4]
call dword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
test al, al
je 0x416f40
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
push dword [ebx + 4]
call dword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
test al, al
je 0x416f59
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
lea ecx, [ebx - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x416f6c
call fcn.00412410
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x416f7f
call fcn.00412410
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x416f92
call fcn.00412410
mov esi, dword [ebp - 4]
test esi, esi
jne 0x416fca
mov ebx, dword [ebp - 8]
jmp 0x416fa1
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add ebx, 8
add eax, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
cmp ebx, 0x20
jb 0x416e70
test esi, esi
jne 0x416fca
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x416fde
push str.symsrv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test esi, esi
je 0x417114
push 0
mov edx, str.SymInitializeW
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymCleanup
mov dword [0x4588b4], eax
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymEnumSymbolsW
mov dword [0x4588c0], eax
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymFromAddrW
mov dword [0x4588b0], eax
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymFromNameW
mov dword [0x458d1c], eax
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymGetLineFromAddrW64
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymLoadModuleExW
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymGetOptions
mov dword [0x4588cc], eax
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymSetOptions
mov dword [0x4588dc], eax
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymGetSearchPathW
mov dword [0x4588d0], eax
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymSetSearchPathW
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymUnloadModule64
mov dword [0x4588e0], eax
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymFunctionTableAccess64
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymGetModuleBase64
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.SymRegisterCallbackW64
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.StackWalk64
mov dword [0x458d20], eax
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.MiniDumpWriteDump
mov ecx, esi
call fcn.0041a770
push 0
mov edx, str.UnDecorateSymbolNameW
mov ecx, esi
call fcn.0041a770
mov dword [0x458d18], eax
test edi, edi
je 0x417134
push 0
mov edx, str.SymbolServerGetOptions
mov ecx, edi
call fcn.0041a770
push 0
mov edx, str.SymbolServerSetOptions
mov ecx, edi
call fcn.0041a770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret