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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e23cf
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x5181f4]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x5181f4]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x4c], ebx
lea edi, [esp + 0x50]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], ebx
stosd dword es:[edi], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebx
call fcn.00404307
lea ecx, [esp + 0x78]
call fcn.00404307
lea ecx, [esp + 0x94]
call fcn.00404307
xor esi, esi
mov dword [esp + 0xe0], ebx
inc esi
push ebx
lea ecx, [esp + 0xb8]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0xd0], 7
call fcn.00404d28
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xe0], 1
mov dword [esp + 0x4c], eax
mov eax, dword [0x5223f4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x50], eax
mov edi, 0x522610
push 0xbb8
push ebx
lea eax, [esp + 0x54]
push eax
push 2
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jbe 0x41f709
cmp eax, 0x102
je 0x41f6ff
cmp eax, 0xffffffff
jne 0x41f67f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x41f6bb
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push esi
lea ecx, [esp + 0xbc]
call fcn.00404df2
lea esi, [esp + 0x54]
call fcn.0041faea
xor eax, eax
cmp dword [esp + 0x20], ebx
sete al
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.00441cbb
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x14], ebx
je 0x41f67f
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
cmp dword [0x52260c], ebx
push edi
sete al
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41f739
mov dword [esp + 0x38], esi
cmp dword [esp + 0x28], ebx
je 0x41f74e
cmp dword [esp + 0x38], ebx
je 0x41f67f
jmp 0x41f6bb
lea eax, [esp + 0x10]
push ebx
push eax
mov dword [esp + 0x28], ebx
call fcn.00407d95
test eax, eax
pop ecx
pop ecx
jne 0x41f769
mov dword [esp + 0x14], ebx
jmp 0x41f7c1
push ebx
push ebx
push 0x51f95c
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push 4
lea edx, [esp + 0x40]
call fcn.00416cb8
add esp, 0x14
test eax, eax
je 0x41f7bd
cmp dword [esp + 0x18], ebx
jbe 0x41f7ae
dec dword [esp + 0x18]
xor eax, eax
cmp dword [esp + 0x34], ebx
setne al
mov dword [esp + 0x44], eax
jmp 0x41f7c1
mov dword [esp + 0x2c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x52260c]
cmp ecx, ebx
jne 0x41f7db
mov dword [esp + 0x28], esi
jmp 0x41f862
mov eax, dword [0x522608]
lea edx, [eax + ecx]
cmp eax, edx
mov esi, eax
jbe 0x41f7f9
call fcn.00441e1b
mov ecx, dword [0x52260c]
mov eax, dword [0x522608]
add eax, ecx
cmp esi, eax
jb 0x41f809
call fcn.00441e1b
mov edi, 0x522610
mov eax, dword [0x522604]
cmp eax, esi
ja 0x41f814
sub esi, eax
mov eax, dword [0x522600]
mov esi, dword [eax + esi*4]
mov eax, dword [esi]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [esp + 0x5c], eax
push ebx
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x68]
call fcn.00404c75
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x24]
push eax
lea ecx, [esp + 0x84]
call fcn.00404c75
push 0xffffffffffffffff
push ebx
add esi, 0x40
push esi
lea ecx, [esp + 0xa0]
call fcn.00404c75
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x28], ebx
jne 0x41fad1
mov eax, 0xff
cmp dword [esp + 0x70], eax
jbe 0x41f88a
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x64]
call fcn.00404404
cmp dword [esp + 0x8c], 0x32
jbe 0x41f8a4
push 0xffffffffffffffff
push 0x32
lea ecx, [esp + 0x80]
call fcn.00404404
mov eax, 0x3e8
cmp dword [esp + 0xa8], eax
jbe 0x41f8c1
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x9c]
call fcn.00404404
cmp dword [esp + 0x14], ebx
je 0x41fa04
cmp dword [esp + 0xac], 8
mov edx, dword [esp + 0x98]
jae 0x41f8e3
lea edx, [esp + 0x98]
cmp dword [esp + 0x90], 8
mov ecx, dword [esp + 0x7c]
jae 0x41f8f5
lea ecx, [esp + 0x7c]
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x41f904
lea eax, [esp + 0x60]
push edx
push ecx
push eax
push 0x4fe0d0
call fcn.0048bf80
add esp, 0x10
cmp dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
je 0x41f966
mov eax, dword [esp + 0x34]
dec eax
dec eax
neg eax
sbb eax, eax
not eax
lea ecx, [esp + 0x48]
and eax, ecx
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push str._oi__CALL_DLPreAddMonitorLog__i___i___i_
push esi
push esi
push ebx
push ebx
push dword [esp + 0x34]
call fcn.004223b7
add esp, 0x28
test eax, 0xfffffffe
mov dword [esp + 0x30], eax
je 0x41f96a
mov dword [esp + 0x1c], ebx
jmp 0x41f96a
mov dword [esp + 0x1c], esi
test byte [esp + 0x1c], 1
je 0x41f9db
cmp dword [esp + 0xac], 8
mov edx, dword [esp + 0x98]
jae 0x41f989
lea edx, [esp + 0x98]
cmp dword [esp + 0x90], 8
mov ecx, dword [esp + 0x7c]
jae 0x41f99b
lea ecx, [esp + 0x7c]
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x41f9aa
lea eax, [esp + 0x60]
push edx
push ecx
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x54]
push eax
push str.CALL_DLLogMonitorEvent__i___i___i___st255Sv___st50Sv___st1000Sv_
push esi
push esi
push ebx
push ebx
push dword [esp + 0x3c]
call fcn.004223b7
add esp, 0x30
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esi
jmp 0x41f9f0
cmp dword [esp + 0x24], ebx
je 0x41f9f0
push 0xa000002b
mov dword [esp + 0x28], ebx
call fcn.0042c80d
pop ecx
test dword [esp + 0x30], 0xfffffffe
je 0x41f9fe
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x14], ebx
jne 0x41fa76
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x52260c]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x38], ebx
jne 0x41fa2a
cmp esi, 0xc8
jbe 0x41face
cmp dword [esp + 0xac], 8
mov edx, dword [esp + 0x98]
jae 0x41fa42
lea edx, [esp + 0x98]
cmp dword [esp + 0x90], 8
mov ecx, dword [esp + 0x7c]
jae 0x41fa54
lea ecx, [esp + 0x7c]
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x41fa63
lea eax, [esp + 0x60]
push edx
push ecx
push eax
push 0x60000028
call fcn.0042c80d
xor esi, esi
add esp, 0x10
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x52260c], ebx
je 0x41fac2
mov eax, dword [0x522608]
mov ecx, dword [0x522600]
mov esi, dword [ecx + eax*4]
call fcn.0041faea
mov eax, dword [0x522604]
inc dword [0x522608]
cmp eax, dword [0x522608]
ja 0x41fab1
mov dword [0x522608], ebx
xor esi, esi
inc esi
dec dword [0x52260c]
jne 0x41fac2
mov dword [0x522608], ebx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41f7c1
xor esi, esi
inc esi
cmp dword [esp + 0x10], ebx
je 0x41fae1
push dword [esp + 0x10]
call fcn.00407f35
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x41f67f