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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x6470fc]
cmp eax, 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
je 0x50cd21
push str.TBK_ENABLE_VERBOSE_STACK_TRACE
mov dword [0x6470fc], 1
call fcn.00552d40
add esp, 4
mov esi, eax
test esi, esi
je 0x50c7f6
movsx eax, byte [esi]
test eax, eax
je 0x50c7f6
push eax
call fcn.0055bad0
movsx eax, al
add esp, 4
cmp eax, 0x74
je 0x50c904
cmp eax, 0x79
je 0x50c904
mov dword [ebp - 0x10], 0
mov ebx, esi
jmp 0x50c7de
inc ebx
movsx eax, byte [ebx]
test eax, eax
je 0x50c8e8
push eax
call fcn.0055bdd0
add esp, 4
test eax, eax
jne 0x50c7dd
push str.FOR_ENABLE_VERBOSE_STACK_TRACE
call fcn.00552d40
add esp, 4
mov esi, eax
test esi, esi
je 0x50c852
movsx eax, byte [esi]
test eax, eax
je 0x50c852
push eax
call fcn.0055bad0
movsx eax, al
add esp, 4
cmp eax, 0x74
je 0x50c904
cmp eax, 0x79
je 0x50c904
mov dword [ebp - 0x14], 0
mov ebx, esi
jmp 0x50c83a
inc ebx
movsx eax, byte [ebx]
test eax, eax
je 0x50c90b
push eax
call fcn.0055bdd0
add esp, 4
test eax, eax
jne 0x50c839
mov ebx, 1
cmp dword [ebp + 8], 0
je 0x50c873
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x50c873
cmp dword [eax], 0
je 0x50c873
test ebx, ebx
je 0x50c928
mov ecx, dword [ebp + 0xc]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x50c88d
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x50c878
dec eax
push 0xa829a0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 8], 0
je 0x50c8a8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
jmp 0x50c8aa
xor ecx, ecx
mov eax, dword [ebp + 0xc]
push ebx
lea edx, [eax + esi]
neg esi
add esi, 0x4000
push esi
push edx
push ecx
call fcn.005a4000
add esp, 0x10
push 0xa829a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov dword [0x6470fc], 0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push 0x5f0960
push esi
call fcn.0055c480
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x50c7f6
xor ebx, ebx
jmp 0x50c857
lea eax, [ebp - 0x14]
push eax
push 0x5f0960
push esi
call fcn.0055c480
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x50c904
jmp 0x50c852
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov dword [ebp - 0x18], edx
cmp dword [edx], 0
je 0x50c873
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
movsx edx, byte [eax]
test edx, edx
je 0x50c954
mov edx, eax
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x50c949
mov dword [ebp - 0x1c], edx
mov edx, str._nHex_Dump_Of_Exception_Record_Context_Information:_n_n
mov edi, dword [ebp - 0x1c]
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x50c966
mov eax, dword [ebp - 0x1c]
movsx edx, byte [eax]
test edx, edx
je 0x50c987
mov edx, eax
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x50c97c
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test al, 1
je 0x50ca0a
mov eax, dword [ebp - 0x18]
push dword [eax + 0xb4]
push str.__EBP:
push dword [eax + 0xc4]
push str.__ESP:
push dword [eax + 0xc8]
push str.__SS:
push dword [eax + 0xb8]
push str.__EIP:
push dword [eax + 0xbc]
push str.CS:
push dword [eax + 0xc0]
push str.EFlags:
push str.Exception_Context:__Processor_Control_and_Status_Registers.
push str._s_n_n_s_8.8lX_n_s_8.8lX_s_8.8lX_s_8.8lX_s_8.8lX_s_8.8lX_n_n
push dword [ebp - 0x1c]
call fcn.005526f0
add esp, 0x3c
mov eax, dword [ebp - 0x1c]
movsx edx, byte [eax]
test edx, edx
je 0x50cd0d
mov edx, eax
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x50c9fa
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax]
test al, 2
je 0x50ca88
mov eax, dword [ebp - 0x18]
push dword [eax + 0x9c]
push str.__EDI:
push dword [eax + 0xa0]
push str.ESI:
push dword [eax + 0xa8]
push str.__EDX:
push dword [eax + 0xac]
push str.__ECX:
push dword [eax + 0xa4]
push str.__EBX:
push dword [eax + 0xb0]
push str.EAX:
push str.Exception_Context:__Processor_Integer_Registers.
push str._s_n_n_s_8.8lX_s_8.8lX_s_8.8lX_s_8.8lX_n_s_8.8lX_s_8.8lX_n_n
push dword [ebp - 0x1c]
call fcn.005526f0
add esp, 0x3c
mov eax, dword [ebp - 0x1c]
movsx edx, byte [eax]
test edx, edx
je 0x50cd03
mov edx, eax
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x50ca78
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax]
test al, 4
je 0x50caf0
mov eax, dword [ebp - 0x18]
push dword [eax + 0x8c]
push str.__GS:
push dword [eax + 0x90]
push str.__FS:
push dword [eax + 0x94]
push str.__ES:
push dword [eax + 0x98]
push str.DS:
push str.Exception_Context:__Processor_Segment_Registers.
push str._s_n_n_s_8.8lX_s_8.8lX_s_8.8lX_s_8.8lX_n_n
push dword [ebp - 0x1c]
call fcn.005526f0
add esp, 0x2c
mov eax, dword [ebp - 0x1c]
movsx edx, byte [eax]
test edx, edx
je 0x50cd17
mov edx, eax
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x50cae0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax]
test al, 8
je 0x50cce2
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
mov dword [esp + 4], str._s_n_n_s_8.8lX_s_8.8lX_s_8.8lX_n_s_8.8lX_s_8.8lX_s_8.8lX_n_s_8.8lX_s_8.8lX_n_n_s_n_n_s_4.4hX_8.8lX_8.8lX_s_4.4hX_8.8lX_8.8lX_n_s_4.4hX_8.8lX_8.8lX_s_4.4hX_8.8lX_8.8lX_n_s_4.4hX_8.8lX_8.8lX_s_4.4hX_8.8lX_8.8lX_n_s_4.4hX_8.8lX_8.8lX_s_4.4hX_8.8lX_8.8lX_n
mov dword [esp + 8], str.Exception_Context:__Floating_Point_Control_and_Status_Registers.
mov dword [esp + 0xc], str.ControlWord:
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x28]
mov edi, dword [eax + 0x30]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], str.__ErrorOffset:
mov edx, dword [eax + 0x20]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], str.__DataOffset:
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], str.StatusWord:
mov esi, dword [eax + 0x34]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], str.__ErrorSelector:
mov edi, dword [eax + 0x24]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], str.__DataSelector:
mov edx, dword [eax + 0x88]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], str.TagWord:
mov dword [esp + 0x40], edi
movsx ecx, word [eax + 0x40]
mov dword [esp + 0x44], str.__Cr0NpxState:
mov dword [esp + 0x48], edx
mov esi, dword [eax + 0x3c]
mov edi, dword [eax + 0x38]
mov dword [esp + 0x4c], str.Exception_Context:__Floating_Point_RegisterArea.
mov dword [esp + 0x50], str.RegisterArea_00_:
mov dword [esp + 0x54], ecx
movsx edx, word [eax + 0x4a]
mov ecx, dword [eax + 0x46]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
mov esi, dword [eax + 0x42]
mov dword [esp + 0x60], str.__RegisterArea_10_:
mov dword [esp + 0x64], edx
movsx edi, word [eax + 0x54]
mov edx, dword [eax + 0x50]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], str.RegisterArea_20_:
movsx esi, word [eax + 0x5e]
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edx
mov edi, dword [eax + 0x5a]
mov edx, dword [eax + 0x56]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], str.__RegisterArea_30_:
mov dword [esp + 0x84], esi
movsx ecx, word [eax + 0x68]
mov esi, dword [eax + 0x64]
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edx
mov edi, dword [eax + 0x60]
mov dword [esp + 0x90], str.RegisterArea_40_:
mov dword [esp + 0x94], ecx
movsx edx, word [eax + 0x72]
mov ecx, dword [eax + 0x6e]
mov dword [esp + 0x98], esi
mov esi, dword [eax + 0x6a]
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], str.__RegisterArea_50_:
movsx edi, word [eax + 0x7c]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], ecx
mov edx, dword [eax + 0x78]
mov ecx, dword [eax + 0x74]
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], str.RegisterArea_60_:
mov dword [esp + 0xb4], edi
movsx esi, word [eax + 0x86]
mov edi, dword [eax + 0x82]
mov eax, dword [eax + 0x7e]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], str.__RegisterArea_70_:
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], eax
call fcn.005526f0
mov eax, dword [ebp - 0x1c]
movsx edx, byte [eax]
test edx, edx
je 0x50cce2
mov edx, eax
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x50ccd7
mov dword [ebp - 0x1c], edx
mov edx, 0x5f0eb8
mov edi, dword [ebp - 0x1c]
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x50ccf4
jmp 0x50c873
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
jmp 0x50ca88
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
jmp 0x50ca0a
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
jmp 0x50caf0
xor eax, eax
mov esp, ebp
pop ebp
ret