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

Disassembly:
push 0xffffffffffffffff
push 0x4d1ab4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
mov ebp, dword [esp + 0x100]
push esi
push edi
push ebp
mov byte [esp + 0x17], 0
call ebx
mov esi, dword [ebp + 0x28]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x13]
push eax
mov eax, esi
push 0x4de124
lea esi, [esp + 0xd8]
call fcn.004116a0
xor edi, edi
push ebp
mov dword [esp + 0x104], edi
mov dword [esp + 0x20], edi
call ebx
mov esi, dword [ebp + 0x28]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jbe 0x424bce
mov dword [esp + 0x40], ebp
nop
push ebp
call ebx
push edi
lea ecx, [esp + 0x24]
mov eax, ebp
mov byte [esp + 0x104], 1
call fcn.00411670
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 8], 5
jne 0x424b22
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
or ecx, 0xffffffff
lea edx, [esp + 0x20]
mov byte [esp + 0x100], 3
call fcn.0040b9b0
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4248a4
lea eax, [edi + 8]
test eax, eax
jne 0x4248b0
mov eax, 0x4d9064
lea esp, [esp]
push 0x20
push eax
call fcn.0049e9fa
add esp, 8
test eax, eax
je 0x424905
cmp word [eax + 2], 0x2d
jne 0x4248b0
cmp word [eax + 4], 0x3e
jne 0x4248b0
cmp word [eax + 6], 0x20
jne 0x4248b0
lea edx, [eax + 8]
test edx, edx
je 0x4248f5
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4248e0
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x4248f7
xor eax, eax
push edx
lea ebx, [esp + 0x18]
call fcn.00490250
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x8c], edi
test edi, edi
je 0x424919
push edi
call esi
mov dword [esp + 0x44], edi
test edi, edi
je 0x424924
push edi
call esi
mov dword [esp + 0x4c], edi
test edi, edi
je 0x42492f
push edi
call esi
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x44]
push edx
push eax
lea ebx, [esp + 0x3c]
mov byte [esp + 0x108], 5
call fcn.004278d0
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x104], 4
call fcn.00424c70
mov eax, dword [esp + 0x34]
xor ebx, ebx
cmp eax, ebx
jne 0x424a45
call fcn.0049f380
xor eax, eax
mov esi, dword [esp + 0x38]
cmp esi, dword [eax + 0x18]
jne 0x424a08
call fcn.0049f380
cmp byte [esp + 0x3c], bl
je 0x424a32
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov edx, dword [esp + 0x28]
cmp dword [edx + 0x24], 0x103
jne 0x424a49
xor eax, eax
xor ecx, ecx
jmp 0x424a4f
mov eax, dword [eax]
jmp 0x4249fa
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
add dword [esi + 0x20], eax
adc dword [esi + 0x24], ecx
mov ecx, 1
add dword [esi + 0x28], ecx
movzx eax, word [edx + 0xc]
cmp eax, 9
ja case.default.0x424a66
jmp dword [eax*4 + 0x424c0c]
add dword [esi + 0x2c], ecx
jmp case.default.0x424a66
add dword [esi + 0x30], ecx
jmp case.default.0x424a66
add dword [esi + 0x34], ecx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x18]
xor ecx, ecx
lea edx, [esp + 0x20]
mov byte [esp + 0x100], 6
call fcn.0040b9b0
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x424aa4
lea eax, [edi + 8]
cmp eax, ebx
jne 0x424aa9
mov eax, 0x4d9064
call fcn.00442ee0
add dword [esi + 0x40], eax
adc dword [esi + 0x44], edx
mov byte [esp + 0x100], 4
cmp edi, ebx
je 0x424ad4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x424ad4
push edi
call fcn.0049e96f
add esp, 4
mov edi, dword [esp + 0x14]
mov byte [esp + 0x100], 3
cmp edi, ebx
je 0x424af8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x424af8
push edi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x100], 2
cmp edi, ebx
je 0x424b18
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x424b18
push edi
call fcn.0049e96f
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x1c]
push ebp
call ebx
mov esi, dword [ebp + 0x28]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x13], 0
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], esi
mov dword [esp + 0x20], vtable.CEventRef.0
lea ecx, [esp + 0x20]
jne 0x424bc2
call fcn.00405d80
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc edi
push ebp
mov dword [esp + 0x20], edi
call ebx
mov esi, dword [ebp + 0x28]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, esi
jb 0x424850
jmp 0x424bce
add dword [esi + 0x38], ecx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x18]
xor ecx, ecx
lea edx, [esp + 0x20]
mov byte [esp + 0x100], 7
call fcn.0040b9b0
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x424ba5
lea eax, [edi + 8]
cmp eax, ebx
jne 0x424baa
mov eax, 0x4d9064
call fcn.00442ee0
add dword [esi + 0x48], eax
adc dword [esi + 0x4c], edx
jmp 0x424ab4
add dword [esi + 0x50], ecx
jmp case.default.0x424a66
call fcn.00405d80
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x13], 0
lea eax, [esp + 0xd0]
sete bl
mov dword [esp + 0x100], 0xffffffff
call fcn.00411790
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0xf4
ret 8