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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x103f2d3c]
cmp eax, 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
je 0x10156ec1
push str.TBK_ENABLE_VERBOSE_STACK_TRACE
mov dword [0x103f2d3c], 1
call fcn.101412c9
add esp, 4
mov esi, eax
test esi, esi
je 0x10156996
movsx eax, byte [esi]
test eax, eax
je 0x10156996
push eax
call fcn.1013a5df
movsx eax, al
add esp, 4
cmp eax, 0x74
je 0x10156aa4
cmp eax, 0x79
je 0x10156aa4
mov dword [ebp - 0x10], 0
mov ebx, esi
jmp 0x1015697e
inc ebx
movsx eax, byte [ebx]
test eax, eax
je 0x10156a88
push eax
call fcn.1013f009
add esp, 4
test eax, eax
jne 0x1015697d
push str.FOR_ENABLE_VERBOSE_STACK_TRACE
call fcn.101412c9
add esp, 4
mov esi, eax
test esi, esi
je 0x101569f2
movsx eax, byte [esi]
test eax, eax
je 0x101569f2
push eax
call fcn.1013a5df
movsx eax, al
add esp, 4
cmp eax, 0x74
je 0x10156aa4
cmp eax, 0x79
je 0x10156aa4
mov dword [ebp - 0x14], 0
mov ebx, esi
jmp 0x101569da
inc ebx
movsx eax, byte [ebx]
test eax, eax
je 0x10156aab
push eax
call fcn.1013f009
add esp, 4
test eax, eax
jne 0x101569d9
mov ebx, 1
cmp dword [ebp + 8], 0
je 0x10156a13
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x10156a13
cmp dword [eax], 0
je 0x10156a13
test ebx, ebx
je 0x10156ac8
mov ecx, dword [ebp + 0xc]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x10156a2d
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x10156a18
dec eax
push 0x10540f00
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 8], 0
je 0x10156a48
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
jmp 0x10156a4a
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.10171970
add esp, 0x10
push 0x10540f00
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 [0x103f2d3c], 0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push 0x101bdb60
push esi
call fcn.101299f9
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x10156996
xor ebx, ebx
jmp 0x101569f7
lea eax, [ebp - 0x14]
push eax
push 0x101bdb60
push esi
call fcn.101299f9
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x10156aa4
jmp 0x101569f2
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov dword [ebp - 0x18], edx
cmp dword [edx], 0
je 0x10156a13
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
movsx edx, byte [eax]
test edx, edx
je 0x10156af4
mov edx, eax
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x10156ae9
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 0x10156b06
mov eax, dword [ebp - 0x1c]
movsx edx, byte [eax]
test edx, edx
je 0x10156b27
mov edx, eax
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x10156b1c
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test al, 1
je 0x10156baa
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.10129fab
add esp, 0x3c
mov eax, dword [ebp - 0x1c]
movsx edx, byte [eax]
test edx, edx
je 0x10156ead
mov edx, eax
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x10156b9a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax]
test al, 2
je 0x10156c28
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.10129fab
add esp, 0x3c
mov eax, dword [ebp - 0x1c]
movsx edx, byte [eax]
test edx, edx
je 0x10156ea3
mov edx, eax
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x10156c18
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax]
test al, 4
je 0x10156c90
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.10129fab
add esp, 0x2c
mov eax, dword [ebp - 0x1c]
movsx edx, byte [eax]
test edx, edx
je 0x10156eb7
mov edx, eax
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x10156c80
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax]
test al, 8
je 0x10156e82
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.10129fab
mov eax, dword [ebp - 0x1c]
movsx edx, byte [eax]
test edx, edx
je 0x10156e82
mov edx, eax
inc edx
movsx eax, byte [edx]
test eax, eax
jne 0x10156e77
mov dword [ebp - 0x1c], edx
mov edx, 0x101be678
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 0x10156e94
jmp 0x10156a13
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
jmp 0x10156c28
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
jmp 0x10156baa
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
jmp 0x10156c90
xor eax, eax
mov esp, ebp
pop ebp
ret