Function at 0x5a5260
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc890
push 0x5c4864
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
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.005a67c0
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 edi, edi
mov dword [0xa4f63c], edi
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0xa4f63c], eax
cmp eax, edi
je 0x5a5697
mov dword [0xa4f638], edi
mov dword [0xa4f640], edi
mov dword [0xa4f648], edi
mov dword [0xa4f644], edi
mov dword [0xa4f64c], edi
push str.StackWalk
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [0xa4f638], eax
push str.SymInitialize
mov eax, dword [0xa4f63c]
push eax
call esi
mov dword [0xa4f640], eax
push str.SymCleanup
mov ecx, dword [0xa4f63c]
push ecx
call esi
mov dword [0xa4f648], eax
push str.ImagehlpApiVersionEx
mov edx, dword [0xa4f63c]
push edx
call esi
mov dword [0xa4f644], eax
push str.SymFunctionTableAccess
mov eax, dword [0xa4f63c]
push eax
call esi
mov dword [0xa4f64c], eax
cmp dword [0xa4f638], edi
je 0x5a5697
cmp dword [0xa4f640], edi
je 0x5a5697
cmp dword [0xa4f648], edi
je 0x5a5697
cmp eax, edi
je 0x5a5697
mov dword [ebp - 0x30], 1
push str.FOR_ENABLE_VERBOSE_STACK_TRACE
call fcn.005aab60
add esp, 4
test eax, eax
je 0x5a538c
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x5a539d
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], edi
je 0x5a53b9
cmp dword [ebp - 0x30], edi
jne 0x5a53b9
mov ebx, dword [ebp + 0xc]
push ebx
mov eax, dword [eax + 4]
push eax
call fcn.005a5dd0
add esp, 8
jmp 0x5a53bc
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 esi, eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push 0
push edi
call dword [0xa4f640]
test eax, eax
jne 0x5a53ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x1c
xor eax, eax
mov edi, 0x707360
rep stosd dword es:[edi], eax
mov eax, 3
mov dword [0x707368], eax
mov dword [0x70738c], eax
mov dword [0x707380], eax
xor edx, edx
cmp dword [ebp - 0x3c], edx
je 0x5a547a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0xb8]
mov dword [0x707360], ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0xc4]
mov dword [0x707384], ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0xb4]
mov dword [0x707378], ecx
mov ecx, dword [eax + 4]
mov cx, word [ecx + 0xbc]
mov word [0x707364], cx
mov ecx, dword [eax + 4]
mov cx, word [ecx + 0xc8]
mov word [0x707388], cx
mov eax, dword [eax + 4]
mov cx, word [eax + 0xc8]
mov word [0x70737c], cx
jmp 0x5a54bc
mov ecx, 0x33
xor eax, eax
mov edi, 0x705290
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x38]
mov dword [0x707360], eax
mov ecx, dword [ebp - 0x50]
mov dword [0x707384], ecx
mov eax, dword [ebp - 0x48]
mov dword [0x707378], eax
mov cx, word [ebp - 0x1c]
mov word [0x707364], cx
mov ax, word [ebp - 0x28]
mov word [0x707388], ax
mov word [0x70737c], ax
mov word [0x708220], 5
mov word [0x708222], dx
mov word [0x708224], dx
mov word [0x708226], dx
mov eax, dword [0xa4f644]
cmp eax, edx
je 0x5a54ea
push 0x708220
call eax
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], edi
push 0
push fcn.005a5750
push 0x5a57a0
push 0x5a56b0
push 0x705290
push 0x707360
push esi
mov edx, dword [ebp - 0x44]
push edx
push 0x14c
call dword [0xa4f638]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x5a553f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0xa
call fcn.005c484f
add esp, 4
jmp 0x5a55fc
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
mov ecx, dword [ebp - 0x30]
push ecx
push 0x707360
call fcn.005a5a50
add esp, 0x14
test eax, eax
je 0x5a55fc
mov eax, dword [0x70736c]
test eax, eax
je 0x5a55fc
inc edi
mov dword [ebp - 0x34], edi
jmp 0x5a54f5
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 1
jne 0x5a5680
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
lea eax, [edx + 1]
mov edi, 0x4000
sub edi, ecx
cmp edi, eax
jl 0x5a5659
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 0x5a567b
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 [0xa4f648]
mov edx, dword [0xa4f63c]
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