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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 8]
push edi
push eax
mov dword [esp + 0x68], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0xc]
mov edi, dword [esi]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
add edi, 0x208
xor ebx, ebx
cmp dword [edi + 4], eax
jne 0x414c2d
cmp dword [edi + 8], ecx
je 0x414ca9
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
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea esi, [esp + 0x10]
call fcn.00409200
mov ecx, esi
call fcn.004d0c50
push ebx
lea eax, [esp + 0x74]
call fcn.004d2430
mov esi, 0x41e970
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], ebx
mov ecx, dword [edi]
lea eax, [esp + 0x70]
call fcn.004d33d0
mov ecx, edi
call fcn.004d1530
mov ecx, dword [esp + 0x94]
mov edi, dword [ebp + 0xc]
push ebx
lea eax, [esp + 0x14]
mov dword [esp + 0xa0], ecx
call fcn.004d2430
mov ecx, dword [edi]
lea eax, [esp + 0x10]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
call fcn.004d33d0
mov ecx, edi
call fcn.004d1530
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x3c], edx
jae 0x414e24
mov edx, dword [esp + 0x84]
mov edi, dword [esp + 0x70]
mov edi, edi
cmp edx, edi
jae 0x414e24
lea edx, [esp + 0x10]
lea ecx, [esp + 0xa4]
mov byte [esp + 0xf], bl
call dword [esp + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0xf]
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 8]
push edx
lea eax, [esp + 0x6c]
call fcn.00414ae0
cmp byte [esp + 0xf], bl
jne 0x414d8c
lea edx, [esp + 0x70]
lea ecx, [esp + 0xa0]
call dword [esp + 0x90]
mov eax, dword [eax]
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], eax
call dword [esp + 0x38]
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jae 0x414dc6
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 0x414dc6
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 0x414e1a
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 0x414e1a
add eax, dword [esp + 0x78]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], eax
cmp esi, dword [esp + 0x10]
jb 0x414d30
mov ecx, dword [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8