Function at 0x41a1f0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e389d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x57af80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 8]
push esi
call dword [0x50259c]
mov eax, dword [esi + 4]
lea ecx, [ebx + 0x20]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
lea eax, [esi + 0x20]
push eax
call dword [0x502ed4]
lea eax, [esi + 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0x24]
call dword [0x502ed4]
lea eax, [esi + 0x28]
push eax
lea ecx, [ebx + 0x28]
call dword [0x502ed4]
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebx + 0x2c]
call dword [0x502ed4]
lea eax, [esi + 0x30]
push eax
lea ecx, [ebx + 0x30]
call dword [0x502ed4]
lea eax, [esi + 0x34]
push eax
lea ecx, [ebx + 0x34]
call dword [0x502ed4]
lea eax, [esi + 0x38]
push eax
lea ecx, [ebx + 0x38]
call dword [0x502ed4]
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebx + 0x3c]
call dword [0x502ed4]
lea eax, [esi + 0x40]
push eax
lea ecx, [ebx + 0x40]
call dword [0x502ed4]
lea eax, [esi + 0x44]
mov byte [ebp - 4], 8
lea ecx, [ebx + 0x44]
push eax
call fcn.00403860
lea eax, [esi + 0x48]
mov byte [ebp - 4], 9
lea ecx, [ebx + 0x48]
push eax
call fcn.00403860
lea eax, [esi + 0x4c]
push eax
lea ecx, [ebx + 0x4c]
call dword [0x502ed4]
lea eax, [esi + 0x50]
push eax
lea ecx, [ebx + 0x50]
call dword [0x502ed4]
lea eax, [esi + 0x54]
push eax
lea ecx, [ebx + 0x54]
call dword [0x502ed4]
lea eax, [esi + 0x58]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebx + 0x58]
call fcn.00403860
lea eax, [esi + 0x5c]
push eax
lea ecx, [ebx + 0x5c]
call dword [0x502ee8]
lea eax, [esi + 0x60]
push eax
lea ecx, [ebx + 0x60]
call dword [0x502ed4]
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov eax, dword [esi + 0x6c]
lea ecx, [ebx + 0x70]
mov dword [ebx + 0x6c], eax
lea eax, [esi + 0x70]
push eax
call dword [0x502ed4]
mov al, byte [esi + 0x74]
lea ecx, [ebx + 0x78]
mov byte [ebx + 0x74], al
lea eax, [esi + 0x78]
push eax
call dword [0x502ed4]
lea ecx, [ebx + 0x7c]
call fcn.0041a110
lea edi, [esi + 0x88]
mov byte [ebp - 4], 0x14
lea esi, [ebx + 0x88]
mov ecx, esi
mov dword [ebp - 0x10], esi
call dword [0x502424]
push edi
mov ecx, esi
mov byte [ebp - 4], 0x15
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [0x5025a4]
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea edi, [ebx + 0x98]
mov ecx, edi
call dword [0x5025a8]
mov esi, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 0x17
mov eax, dword [esi + 0x9c]
mov dword [ebx + 0x9c], eax
call fcn.0041aec0
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x10], eax
test edx, edx
je 0x41a40e
mov ecx, 1
mov eax, ecx
lock xadd dword [edx], eax
lea eax, [edx + 4]
lock xadd dword [eax], ecx
inc ecx
mov eax, dword [ebp - 0x10]
mov esi, dword [ebx + 0x68]
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x64], eax
test esi, esi
je 0x41a448
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x41a432
mov eax, dword [esi + 8]
push esi
call eax
add esp, 4
lock xadd dword [esi], edi
dec edi
jne 0x41a442
push esi
call fcn.004df15c
add esp, 4
lea edi, [ebx + 0x98]
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x7c]
lea eax, [esi + 0x7c]
push eax
call fcn.0041ad90
add esi, 0x98
push 0
mov ecx, esi
call dword [0x5025b0]
movzx eax, al
mov ecx, edi
push eax
push 0
call dword [0x5025b4]
push 1
mov ecx, esi
call dword [0x5025b0]
movzx eax, al
mov ecx, edi
push eax
push 1
call dword [0x5025b4]
push 2
mov ecx, esi
call dword [0x5025b0]
movzx eax, al
mov ecx, edi
push eax
push 2
call dword [0x5025b4]
push 3
mov ecx, esi
call dword [0x5025b0]
movzx eax, al
mov ecx, edi
push eax
push 3
call dword [0x5025b4]
push 4
mov ecx, esi
call dword [0x5025b0]
movzx eax, al
mov ecx, edi
push eax
push 4
call dword [0x5025b4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4