Function at 0x40a660
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424210
push 0x41a7bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x54], str._nIncrementally_linked_image__PC_correlation_disabled._n
mov dword [ebp - 0x40], str._nStack_trace_terminated_abnormally._n
call fcn.0040bcf0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x48], ebp
mov dword [ebp - 0x50], esp
mov word [ebp - 0x1c], cs
mov word [ebp - 0x28], ss
xor ebx, ebx
mov dword [0x43cb7c], ebx
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x43cb7c], eax
cmp eax, ebx
je 0x40aa8b
mov dword [0x43cb78], ebx
mov dword [0x43cb80], ebx
mov dword [0x43cb88], ebx
mov dword [0x43cb84], ebx
mov dword [0x43cb8c], ebx
push str.StackWalk
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [0x43cb78], eax
push str.SymInitialize
mov eax, dword [0x43cb7c]
push eax
call edi
mov dword [0x43cb80], eax
push str.SymCleanup
mov ecx, dword [0x43cb7c]
push ecx
call edi
mov dword [0x43cb88], eax
push str.ImagehlpApiVersionEx
mov edx, dword [0x43cb7c]
push edx
call edi
mov dword [0x43cb84], eax
push str.SymFunctionTableAccess
mov eax, dword [0x43cb7c]
push eax
call edi
mov dword [0x43cb8c], eax
cmp dword [0x43cb78], ebx
je 0x40aa8b
cmp dword [0x43cb80], ebx
je 0x40aa8b
cmp dword [0x43cb88], ebx
je 0x40aa8b
cmp eax, ebx
je 0x40aa8b
mov dword [ebp - 0x30], 1
push str.FOR_ENABLE_VERBOSE_STACK_TRACE
call fcn.0040f4e0
add esp, 4
test eax, eax
je 0x40a78c
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x40a79d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], ebx
je 0x40a7b9
cmp dword [ebp - 0x30], ebx
jne 0x40a7b9
mov ebx, dword [ebp + 0xc]
push ebx
mov eax, dword [esi + 4]
push eax
call fcn.0040b1b0
add esp, 8
jmp 0x40a7bc
mov ebx, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x5c], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push 0
push edi
call dword [0x43cb80]
test eax, eax
jne 0x40a7ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x1d
xor eax, eax
mov edi, 0x433588
rep stosd dword es:[edi], eax
mov eax, 3
mov dword [0x433590], eax
mov dword [0x4335b4], eax
mov dword [0x4335a8], eax
xor edx, edx
cmp dword [ebp - 0x3c], edx
je 0x40a86c
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0xb8]
mov dword [0x433588], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0xc4]
mov dword [0x4335ac], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0xb4]
mov dword [0x4335a0], eax
mov ecx, dword [esi + 4]
mov ax, word [ecx + 0xbc]
mov word [0x43358c], ax
mov ecx, dword [esi + 4]
mov ax, word [ecx + 0xc8]
mov word [0x4335b0], ax
mov ecx, dword [esi + 4]
mov ax, word [ecx + 0xc8]
jmp 0x40a8a8
mov ecx, 0xb3
xor eax, eax
mov edi, 0x4312b8
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x38]
mov dword [0x433588], ecx
mov eax, dword [ebp - 0x50]
mov dword [0x4335ac], eax
mov ecx, dword [ebp - 0x48]
mov dword [0x4335a0], ecx
mov ax, word [ebp - 0x1c]
mov word [0x43358c], ax
mov ax, word [ebp - 0x28]
mov word [0x4335b0], ax
mov word [0x4335a4], ax
mov word [0x434450], 7
mov word [0x434452], dx
mov word [0x434454], dx
mov word [0x434456], dx
mov eax, dword [0x43cb84]
cmp eax, edx
je 0x40a8de
push 0x434450
call eax
xor edx, edx
mov dword [ebp - 4], edx
xor esi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], edx
push edx
push fcn.0040ab40
push 0x40aba0
push 0x40aaa0
push 0x4312b8
push 0x433588
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 0x14c
call dword [0x43cb78]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x40a935
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0xa
call fcn.0041a6b7
add esp, 4
jmp 0x40a9f0
lea eax, [ebp - 0x2c]
push eax
push ebx
push esi
mov ecx, dword [ebp - 0x30]
push ecx
push 0x433588
call fcn.0040ae40
add esp, 0x14
test eax, eax
je 0x40a9f0
mov eax, dword [0x433594]
test eax, eax
je 0x40a9f0
inc esi
mov dword [ebp - 0x34], esi
xor edx, edx
jmp 0x40a8e9
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 1
jne 0x40aa74
mov esi, dword [ebp - 0x54]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x4000
sub eax, ecx
lea edi, [edx + 1]
cmp eax, edi
jl 0x40aa4d
lea edx, [ecx + ebx]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
jmp 0x40aa6f
sub ebx, edx
add ebx, 0x3fff
mov edi, esi
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, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x44]
push ecx
call dword [0x43cb88]
mov edx, dword [0x43cb7c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret