Function at 0x482170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x580
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x5c9121], cl
jne 0x4825a2
mov eax, dword [0x5c913c]
test eax, 0x7fffffff
jne 0x4825bf
mov dword [esp + 0x2c], 0
movzx eax, byte [0x5c9122]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [esp + 0x34], eax
call sub.kernel32.dll_GetCurrentThread
mov dword [esp + 0x30], eax
lea esi, [esp + 0x2a0]
push 0x2d0
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
call sub.kernel32.dll_RtlCaptureContext
call fcn.0049ae10
test eax, eax
je 0x482284
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x2a8]
movsd xmm0, qword [esp + 0x2a0]
mov dword [ecx], 0
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x1c]
movsd qword [ecx + 4], xmm0
mov dword [ecx + 0x14], 0
test eax, eax
je 0x48224e
imul eax, eax, 0x130
push 8
push eax
push dword [esp + 0x28]
call fcn.0040cd20
add esp, 0xc
cmp byte [esp + 0x2c], 0
jne 0x482265
mov eax, dword [0x5c913c]
test eax, 0x7fffffff
jne 0x4827e2
xor eax, eax
xchg byte [0x5c9121], al
cmp al, 2
jne 0x48227c
push 0x5c9121
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x5c9190]
mov dword [esp + 0x3c], edx
test eax, eax
mov dword [esp + 0x14], eax
je 0x4822a1
mov esi, dword [0x5c9194]
test esi, esi
jne 0x4822ef
jmp 0x4822d0
push str.SymFunctionTableAccess64
push dword [0x5c9170]
call sub.kernel32.dll_GetProcAddress
test eax, eax
mov dword [esp + 0x14], eax
je 0x4827fb
mov eax, dword [esp + 0x14]
mov dword [0x5c9190], eax
mov esi, dword [0x5c9194]
test esi, esi
jne 0x4822ef
push str.SymGetModuleBase64
push dword [0x5c9170]
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4827fb
mov esi, eax
mov dword [0x5c9194], eax
call sub.kernel32.dll_GetCurrentProcess
mov edi, dword [0x5c9198]
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], esi
test edi, edi
jne 0x482325
push str.StackWalkEx
push dword [0x5c9170]
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4825cf
mov edi, eax
mov dword [0x5c9198], eax
lea ebx, [esp + 0x58]
lea eax, [esp + 0x60]
push 0x100
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x354]
mov ecx, dword [esp + 0x358]
mov edx, dword [esp + 0x364]
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x160], 0x110
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], 3
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x94], 3
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x84], 3
push 0
push 0
push esi
push dword [esp + 0x20]
push 0
lea eax, [esp + 0x2b4]
push eax
push ebx
push dword [esp + 0x4c]
push dword [esp + 0x54]
push 0x14c
call edi
cmp eax, 1
jne 0x482548
mov ecx, esi
xor eax, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x18], 8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
jmp 0x4824b4
mov eax, dword [esp + 0x18]
add eax, esi
push 0x130
lea ecx, [esp + 0x174]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
inc ebx
mov edx, edi
mov dword [esp + 0x10], esi
mov esi, 1
test dl, 1
mov edi, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x24], ebx
cmovne esi, edx
cmovne edi, ecx
cmp dword [esp + 0x58], eax
cmovne edi, ecx
cmovne esi, edx
push 0
push 0
push dword [esp + 0x40]
push dword [esp + 0x20]
push 0
lea eax, [esp + 0x2b4]
push eax
lea ebx, [esp + 0x70]
push ebx
push dword [esp + 0x4c]
push dword [esp + 0x54]
push 0x14c
call dword [esp + 0x74]
mov ecx, dword [esp + 0x38]
add dword [esp + 0x10], 0x130
cmp eax, 1
mov eax, esi
mov dword [esp + 0x28], edi
jne 0x48254a
mov edi, eax
push 0
push dword [esp + 0x5c]
push dword [esp + 0x4c]
call ecx
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov dword [esp + 8], eax
push 0x118
push ebx
lea eax, [esp + 0x180]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x174], esi
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x10]
cmp ecx, dword [esp + 0x1c]
mov ebx, ecx
mov dword [esp + 0x170], eax
mov dword [esp + 0x290], 0
mov dword [esp + 0x294], 4
mov dword [esp + 0x298], 0
jne 0x482420
lea ecx, [esp + 0x1c]
call fcn.0046d850
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jmp 0x482420
xor esi, esi
mov dword [esp + 8], esi
push dword [esp + 0x3c]
call sub.kernel32.dll_ReleaseMutex
cmp dword [esp + 0x24], 0
je 0x482208
xor eax, eax
test byte [esp + 8], 1
mov edx, dword [esp + 0x40]
movsd xmm0, qword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmovne eax, edi
mov dword [edx], 2
movsd qword [edx + 4], xmm0
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], 0
cmp byte [esp + 0x2c], 0
je 0x482255
jmp 0x482265
push 0x5c9121
call fcn.004ac160
add esp, 4
mov eax, dword [0x5c913c]
test eax, 0x7fffffff
je 0x4821a9
call fcn.00499c20
xor al, 1
mov dword [esp + 0x2c], eax
jmp 0x4821b1
lea eax, [esp + 0x60]
push 0x100
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, dword [esp + 0x358]
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x168], 0
mov eax, dword [esp + 0x354]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x18], 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x364]
mov dword [esp + 0x64], 3
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x94], 3
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x84], 3
jmp 0x4826ed
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add eax, esi
push 0x130
lea ecx, [esp + 0x174]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x48]
mov esi, 1
inc ebx
test al, 1
mov edi, eax
mov eax, dword [esp + 0x28]
mov ecx, ebx
cmovne esi, edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x24], ebx
cmovne ecx, eax
cmp dword [esp + 0x58], edx
cmove eax, ecx
cmove edi, esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 8], edi
add eax, 0x130
mov dword [esp + 0x10], eax
mov eax, dword [0x5c918c]
test eax, eax
jne 0x482717
push str.StackWalk64
push dword [0x5c9170]
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4827fb
mov dword [0x5c918c], eax
push 0
push esi
push dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x2b0]
push ecx
lea edi, [esp + 0x6c]
push edi
push dword [esp + 0x48]
push dword [esp + 0x50]
push 0x14c
call eax
cmp eax, 1
jne 0x4827c5
push 0
push dword [esp + 0x5c]
push dword [esp + 0x4c]
call esi
mov dword [esp + 0x168], eax
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
push 0x118
push edi
lea eax, [esp + 0x180]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0xc]
mov dword [esp + 0x174], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x170], ebx
mov dword [esp + 0x290], 0
mov dword [esp + 0x294], 4
mov dword [esp + 0x298], 0
cmp eax, dword [esp + 0x1c]
jne 0x482688
lea ecx, [esp + 0x1c]
call fcn.0046d850
jmp 0x482680
mov edi, dword [esp + 0x28]
push dword [esp + 0x3c]
call sub.kernel32.dll_ReleaseMutex
cmp dword [esp + 0x24], 0
jne 0x482562
jmp 0x482208
call fcn.00499c20
test al, al
jne 0x482265
mov byte [0x5c9122], 1
jmp 0x482265
push 0x5881b4
call fcn.004da950
add esp, 4
ud2