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

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
cmp dword [ebp + 0x30], 0
push esi
push edi
mov dword [esp + 0x1c], 0
jle 0x42338c
xor ebx, ebx
cmp dword [ebp + 0x2c], ebx
mov dword [esp + 0x14], ebx
jle 0x42337e
mov eax, dword [ebp + 0x34]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx*4]
lea esi, [edx + ebx + 0x2c]
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
test eax, eax
je 0x423347
lea ecx, [eax + 0x74]
jmp 0x423349
xor ecx, ecx
mov dword [eax + 0x78], ecx
mov eax, dword [esi]
test eax, eax
je 0x423357
lea ecx, [eax + 0x74]
jmp 0x423359
xor ecx, ecx
mov dword [eax + 0x74], ecx
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
inc eax
add ebx, 0x124
cmp eax, dword [ebp + 0x2c]
mov dword [esp + 0x14], eax
jl 0x423324
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [ebp + 0x30]
mov dword [esp + 0x1c], eax
jl 0x423319
lea edi, [ebp + 0xac]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x30]
mov ebx, dword [eax + 4]
add edi, 0x18
cmp byte [ebx + 0x15], 0
mov esi, ebx
jne 0x4233ce
lea ebx, [ebx]
mov ecx, dword [esi + 8]
push ecx
mov ecx, edi
call fcn.00421d90
mov esi, dword [esi]
push ebx
call fcn.0051b1c8
add esp, 4
cmp byte [esi + 0x15], 0
mov ebx, esi
je 0x4233b0
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
xor esi, esi
mov dword [edi + 0x1c], esi
mov dword [eax], eax
mov edi, dword [edi + 0x18]
lea eax, [ebp + 0xac]
push eax
mov dword [edi + 8], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp + 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x1b0]
mov ecx, dword [eax + 4]
cmp ecx, eax
jne 0x42340f
xor ecx, ecx
jmp 0x423437
mov dword [ebp + 0x1b4], eax
mov eax, dword [ecx]
cmp eax, esi
je 0x423431
mov edx, dword [ecx + 4]
cmp edx, esi
je 0x423431
mov dword [eax + 4], edx
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [edx], eax
mov dword [ecx + 4], esi
mov dword [ecx], esi
dec dword [ebp + 0x1d0]
mov eax, ecx
cmp ecx, esi
je 0x423519
mov esi, dword [eax + 8]
test esi, esi
je 0x42344d
add esi, 0xffffff84
jmp 0x42344f
xor esi, esi
mov ebx, dword [0x587964]
lea edi, [esi + 0xd8]
mov dword [esp + 0x1c], ebx
call fcn.004a7890
xor edi, edi
cmp dword [esi + 0x70], edi
je 0x423477
lea ebx, [esi + 4]
call fcn.004a3e70
mov ebx, dword [esp + 0x1c]
cmp dword [esi + 0x308], edi
je 0x42348b
mov dword [esi + 0x308], edi
mov dword [esi + 0x314], edi
mov eax, dword [esi + 0x300]
cmp eax, edi
je 0x4234a4
push eax
call fcn.0050b940
add esp, 4
mov dword [esi + 0x300], edi
lea edi, [ebx + 0x48]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x4234bd
mov dword [ebx + 0x3c], esi
mov dword [esi + 0x78], eax
jmp 0x4234c6
add eax, 0x74
mov dword [esi + 0x78], eax
mov dword [ebx + 0x3c], esi
inc dword [ebx + 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 0x1b0]
mov eax, dword [ecx + 4]
cmp eax, ecx
jne 0x4234e1
xor eax, eax
jmp 0x423511
mov dword [ebp + 0x1b4], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x42350b
mov edx, dword [eax + 4]
test edx, edx
je 0x42350b
mov dword [ecx + 4], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov dword [eax + 4], 0
mov dword [eax], 0
dec dword [ebp + 0x1d0]
test eax, eax
jne 0x423441
lea eax, [ebp + 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x50
push 0
add ebp, 0x28c
push ebp
call fcn.0051d6f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4