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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
lea eax, [ebx + 8]
push edi
push eax
mov dword [esp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
lea ecx, [eax + eax*4]
shl ecx, 4
lea edi, [ecx + edx + 0x26c]
add eax, 1
cdq
mov ecx, 0x3c
idiv ecx
mov dword [ebx + 4], edx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
xor ebx, ebx
cmp dword [edi + 4], eax
jne 0x414f14
cmp dword [edi + 8], ecx
je 0x414f8d
push ebx
push ebx
push ecx
push eax
mov edx, 1
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.004ce8c0
lea eax, [esp + 0x10]
call fcn.004d1240
lea ecx, [esp + 0x10]
call fcn.004d0c50
push ebx
lea eax, [esp + 0x74]
call fcn.004d2430
mov dword [esp + 0x98], 0x41e970
mov dword [esp + 0x9c], ebx
mov ecx, dword [edi]
lea eax, [esp + 0x70]
call fcn.004d33d0
mov ecx, edi
call fcn.004d1530
mov edx, dword [esp + 0x94]
push ebx
mov edi, esi
lea eax, [esp + 0x14]
mov dword [esp + 0xa0], edx
call fcn.004d2430
mov ecx, dword [esi]
lea eax, [esp + 0x10]
mov dword [esp + 0x38], 0x41e970
mov dword [esp + 0x3c], ebx
call fcn.004d33d0
mov ecx, esi
call fcn.004d1530
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
jae 0x415108
mov edx, dword [esp + 0x84]
mov edi, dword [esp + 0x70]
cmp edx, edi
jae 0x415108
lea edx, [esp + 0x10]
lea ecx, [esp + 0xa4]
mov byte [esp + 0xf], bl
call dword [esp + 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xf]
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], edx
call fcn.00414ae0
cmp byte [esp + 0xf], bl
jne 0x415070
lea edx, [esp + 0x70]
lea ecx, [esp + 0xa0]
call dword [esp + 0x90]
mov ecx, dword [eax]
mov dword [esp + 0x6c], ecx
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x10]
call dword [esp + 0x38]
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jae 0x4150aa
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add eax, dword [esp + 0x1c]
add ecx, 1
add esi, 1
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], esi
jne 0x4150aa
add eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x84]
mov edi, dword [esp + 0x70]
cmp edx, edi
jae 0x4150fe
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
add eax, dword [esp + 0x7c]
add ecx, 1
add edx, 1
cmp ecx, dword [esp + 0x74]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x84], edx
jne 0x4150fe
add eax, dword [esp + 0x78]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], eax
cmp esi, dword [esp + 0x10]
jb 0x415014
mov edx, dword [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4