Function at 0x100f80d0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x1012e169
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x103b2018]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
cmp edi, dword [ebp + 8]
jne 0x100f810c
test edi, edi
jl 0x100f82f1
cmp dword [ebp + 0x54], 0
je 0x100f8161
push str._H:_M:_S
push ecx
lea esi, [esp + 0x20]
call fcn.1000d160
add esp, 4
push eax
lea ecx, [esp + 0x40]
call fcn.10005710
mov dword [esp + 0x30], 0
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 0x54]
push ecx
push edi
push edx
push str._s__TP__AdjustSize:__d_oric:__d
push eax
call sub.NirvanaUtils.dll_public:_long_int___cdecl_GLog::WriteLogFormat_wchar_t_const__
add esp, 0x14
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp edi, dword [ebp + 8]
jle 0x100f81b3
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x54]
test eax, eax
je 0x100f818a
mov ecx, dword [ebp + 8]
push ecx
push edi
push str._TP__AS_newc:__d_gt_oric:__d
push eax
call sub.NirvanaUtils.dll_public:_long_int___cdecl_GLog::WriteLogFormat_wchar_t_const__
add esp, 0x10
mov edx, edi
sub edx, dword [ebp + 8]
xor esi, esi
test edx, edx
jle 0x100f81a6
mov ebx, ebp
call fcn.100f7750
mov eax, edi
sub eax, dword [ebp + 8]
inc esi
cmp esi, eax
jl 0x100f8195
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, dword [ebp + 8]
jge 0x100f82ee
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x54]
test eax, eax
je 0x100f81dd
mov ecx, dword [ebp + 8]
push ecx
push edi
push str._TP__AS_newc:__d_lt_oric:__d
push eax
call sub.NirvanaUtils.dll_public:_long_int___cdecl_GLog::WriteLogFormat_wchar_t_const__
add esp, 0x10
mov edx, dword [ebp + 8]
sub edx, edi
mov dword [esp + 0x38], 0
test edx, edx
jle 0x100f82e4
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x18], 0
je 0x100f82ce
mov esi, dword [eax]
mov edi, dword [eax + 0x14]
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x100f8210
call ebx
mov edi, dword [edi + 4]
test esi, esi
je 0x100f821b
mov eax, dword [esi]
jmp 0x100f821d
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x100f8224
call ebx
test esi, esi
jne 0x100f825d
call ebx
cmp edi, dword [esi + 0x14]
jne 0x100f8231
call ebx
mov ebx, dword [ebp + 0x18]
mov esi, dword [edi + 8]
mov edi, dword [ebx]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x100f824a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x100f8261
mov ecx, dword [edi]
jmp 0x100f8263
mov esi, dword [esi]
jmp 0x100f822a
xor ecx, ecx
cmp eax, dword [ecx + 0x14]
jne 0x100f8272
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
push eax
push edi
lea edx, [esp + 0x28]
push edx
mov edi, ebx
call fcn.100f8310
mov eax, dword [esi]
push 0xea60
push eax
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100f82c1
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.mfc90u.dll_delete
mov edi, dword [esp + 0x40]
add esp, 4
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 8]
inc eax
sub ecx, edi
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x100f81f2
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 8], edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8