Function at 0x4042c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [esi], 0
jne 0x4042f8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi], eax
mov al, byte [0x420ba4]
test al, al
jne 0x4042f8
push 0x104
push 0x420ba4
push 0
call edi
mov eax, dword [0x420cc8]
mov esi, dword [esi]
test eax, eax
mov dword [ebp + 8], esi
jne 0x4044ec
mov ecx, dword [0x420cb4]
test ecx, ecx
jne 0x4044a4
push ebx
push 0x48
call fcn.0040e3e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404499
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
mov dword [ebx], 0x4193a0
mov dword [ebx + 0x20], 0
call edi
test eax, eax
je 0x4043a2
lea ecx, [ebp - 0x104]
push 0x5c
push ecx
call fcn.00401450
add esp, 8
test eax, eax
je 0x4043a2
lea edx, [eax + 1]
mov edi, str.dbghelp.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [ebp - 0x104]
push ecx
lea esi, [ebp - 0x104]
call edi
mov dword [ebx + 0x20], eax
jmp 0x4043ab
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x4043cc
mov esi, str.DBGHELP.DLL
push esi
call edi
test eax, eax
mov dword [ebx + 0x20], eax
jne 0x4043cc
mov esi, str.IMAGEHLP.DLL
push esi
call edi
mov dword [ebx + 0x20], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.SymGetLineFromAddr
push esi
call edi
xor ecx, ecx
mov dword [ebx + 8], eax
cmp eax, ecx
jne 0x4043fa
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], ecx
jmp 0x404426
push str.SymGetLineFromName
push esi
call edi
push str.SymGetLineNext
push esi
mov dword [ebx + 0xc], eax
call edi
push str.SymGetLinePrev
push esi
mov dword [ebx + 0x10], eax
call edi
push str.SymMatchFileName
push esi
mov dword [ebx + 0x14], eax
call edi
mov dword [ebx + 0x18], eax
push str.StackWalk
push esi
call edi
push str.SymCleanup
push esi
mov dword [ebx + 0x24], eax
call edi
push str.SymLoadModule
push esi
mov dword [ebx + 0x2c], eax
call edi
push str.SymInitialize
push esi
mov dword [ebx + 0x38], eax
call edi
push str.SymGetOptions
push esi
mov dword [ebx + 0x28], eax
call edi
push str.SymSetOptions
push esi
mov dword [ebx + 0x34], eax
call edi
push str.SymGetModuleInfo
push esi
mov dword [ebx + 0x30], eax
call edi
push str.SymGetSymFromAddr
push esi
mov dword [ebx + 0x3c], eax
call edi
push str.SymFunctionTableAccess
push esi
mov dword [ebx + 0x40], eax
call edi
push str.MiniDumpWriteDump
push esi
mov dword [ebx + 0x44], eax
call edi
mov esi, dword [ebp + 8]
mov dword [ebx + 0x1c], eax
jmp 0x40449b
xor ebx, ebx
mov ecx, ebx
pop ebx
mov dword [0x420cb4], ecx
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x4044b3
call eax
mov ecx, dword [0x420cb4]
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x4044c5
or al, 0x10
push eax
call edx
mov ecx, dword [0x420cb4]
mov eax, dword [ecx + 0x28]
mov dword [ecx + 4], esi
test eax, eax
je 0x4044da
push 0
push 0
push esi
call eax
test eax, eax
jne 0x4044e2
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x420cc8], 1
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret