Function at 0x42c1f0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x433d51
push eax
mov al, byte [0x44fd79]
mov dword fs:[0], esp
sub esp, 0x1c
test al, 1
push ebx
push ebp
push esi
jne 0x42c241
mov bl, al
push 0x44fd84
or bl, 1
mov dword [0x44fd80], 0x436e54
mov byte [0x44fd79], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x42c960
call fcn.0043222c
add esp, 4
mov eax, dword [esp + 0x38]
xor ebx, ebx
cmp eax, ebx
jne 0x42c4af
cmp dword [0x44fa94], ebx
jne 0x42c57e
xor eax, eax
mov dword [esp + 0x10], 0x436e58
cmp eax, 0x44fd80
mov dword [esp + 0x14], 0x44fd80
je 0x42c27f
push 0x44fd84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44b954]
mov dword [esp + 0x30], ebx
inc eax
cmp eax, ebx
mov dword [0x44b954], eax
jle 0x42c29f
xor ecx, ecx
cmp ecx, 0x44fd80
jmp 0x42c571
cmp dword [0x44fa94], ebx
je 0x42c2b4
xor edx, edx
cmp edx, 0x44fd80
jmp 0x42c571
mov ebp, dword [esp + 0x40]
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.0042c6b0
add esp, 8
mov eax, dword [eax + 4]
mov byte [esp + 0x30], 1
cmp eax, ebx
jne 0x42c2d7
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x30], 3
cmp eax, ebx
je 0x42c30b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x42c302
cmp al, 0xff
je 0x42c302
dec al
mov byte [ecx], al
jmp 0x42c30b
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x48]
mov byte [esp + 0x30], 4
cmp eax, ebx
push str.LogDll.dll
je 0x42c33f
push eax
lea ecx, [esp + 0x40]
push 0x44b848
push ecx
jmp 0x42c34e
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push edx
push 0x44b848
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x48]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x44fa94], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x44]
mov esi, eax
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x38]
push esi
push edx
lea eax, [esp + 0x4c]
push 0x44b92c
push eax
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x44fa94]
add esp, 0x10
cmp eax, ebx
jne 0x42c3d3
lea ecx, [esp + 0x44]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
xor ecx, ecx
cmp ecx, 0x44fd80
jmp 0x42c514
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.InitLog
push eax
xor edi, edi
call esi
mov edx, dword [0x44fa94]
push str.FiniLog
push edx
mov dword [0x44faa8], eax
call esi
mov dword [0x44faa4], eax
mov eax, dword [0x44fa94]
push str.WriteLog
push eax
call esi
mov ecx, dword [0x44fa94]
push str.GetLogLevel
push ecx
mov dword [0x44faa0], eax
call esi
mov edx, dword [0x44fa94]
push str.RegModuleName
push edx
mov dword [0x44fa90], eax
call esi
mov dword [0x44fa9c], eax
mov eax, dword [0x44fa94]
push str.GetLogMsgCount
push eax
call esi
mov dword [0x44fa98], eax
mov eax, dword [0x44faa8]
cmp eax, ebx
je 0x42c45c
mov ecx, dword [esp + 0x40]
push ebp
push ecx
call eax
add esp, 8
mov edi, eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], bl
call sub.MFC42.DLL_CString::CString
xor edx, edx
cmp edx, 0x44fd80
je 0x42c49a
push 0x44fd84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
cmp eax, 1
jne 0x42c592
xor eax, eax
mov dword [esp + 0x10], 0x436e58
cmp eax, 0x44fd80
mov dword [esp + 0x14], 0x44fd80
je 0x42c4dc
push 0x44fd84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44b8e0]
mov dword [esp + 0x30], 6
inc eax
cmp eax, ebx
mov dword [0x44b8e0], eax
jle 0x42c4fd
xor ecx, ecx
cmp ecx, 0x44fd80
jmp 0x42c571
mov eax, dword [0x44faa4]
cmp eax, ebx
je 0x42c50c
call eax
cmp eax, ebx
je 0x42c536
xor edx, edx
cmp edx, 0x44fd80
je 0x42c521
push 0x44fd84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [0x44fa94]
mov dword [0x44faa8], ebx
cmp eax, ebx
mov dword [0x44faa4], ebx
mov dword [0x44faa0], ebx
mov dword [0x44fa90], ebx
mov dword [0x44fa9c], ebx
je 0x42c56a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44fa94], ebx
xor eax, eax
cmp eax, 0x44fd80
je 0x42c57e
push 0x44fd84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
cmp eax, 2
jne 0x42c5d5
cmp dword [0x44fa94], ebx
je 0x42c521
mov ecx, dword [0x44faa0]
xor eax, eax
cmp ecx, ebx
je 0x42c524
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
push eax
push edx
call ecx
add esp, 0xc
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
cmp eax, 5
jne 0x42c60b
cmp dword [0x44fa94], ebx
je 0x42c521
mov ecx, dword [0x44fa98]
or eax, 0xffffffff
cmp ecx, ebx
je 0x42c524
call ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
cmp eax, 3
jne 0x42c653
cmp dword [0x44fa94], ebx
jne 0x42c62f
pop esi
pop ebp
mov eax, 0xffffd8f0
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [0x44fa90]
xor eax, eax
cmp ecx, ebx
je 0x42c524
call ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
cmp eax, 4
jne 0x42c521
cmp dword [0x44fa94], ebx
jne 0x42c67b
pop esi
pop ebp
mov eax, 0xffffd8f0
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [0x44fa9c]
xor eax, eax
cmp ecx, ebx
je 0x42c524
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push eax
push edx
call ecx
mov ecx, dword [esp + 0x30]
add esp, 8
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
add esp, 0x28
ret