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

Disassembly:
sub esp, 0x414
mov eax, dword [0x45a7c0]
push esi
mov esi, dword [esp + 0x41c]
test esi, esi
mov dword [esp + 0x414], eax
je 0x41d9c8
cmp byte [esi], 0
je 0x41d9c8
push ebx
push 0x455e08
push esi
call fcn.00423acb
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 8], ebx
jne 0x41d675
push esi
call fcn.00424e69
add esp, 4
pop ebx
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x410]
call fcn.004233fe
add esp, 0x414
ret
push ebp
push edi
push ebx
push 0xe
call fcn.00424da0
add esp, 8
push 0x45a4c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esp + 0x42c]
mov ecx, dword [0x45a4c0]
mov eax, dword [0x45a4e0]
and ebp, 2
mov edi, ecx
mov dword [esp + 0x1c], ebp
je 0x41d6e4
xor eax, eax
cmp edi, 0x45a4c0
je 0x41d6db
mov edx, dword [edi + 8]
mov esi, 5
cmp edx, esi
jge 0x41d6cd
cmp dword [edi + 0xc], esi
jge 0x41d6cd
mov edx, dword [edi + 0x10]
test edx, edx
je 0x41d6cd
inc eax
mov edi, dword [edi]
cmp edi, 0x45a4c0
jne 0x41d6b4
mov edi, ecx
jmp 0x41d6e9
mov esi, 5
mov edi, ecx
jmp 0x41d6e9
mov esi, 5
push ebx
push 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 1
push eax
call fcn.00424d54
add esp, 0x10
cmp edi, 0x45a4c0
je 0x41d99b
jmp 0x41d710
test ebp, ebp
je 0x41d731
cmp dword [edi + 8], esi
jge 0x41d98d
cmp dword [edi + 0xc], esi
jge 0x41d98d
mov eax, dword [edi + 0x10]
test eax, eax
je 0x41d98d
lea ecx, [edi + 0x1c]
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
mov ax, word [ecx + 4]
mov word [esp + 0x24], ax
mov ebp, dword [edi + 0x74]
xor ebx, ebx
test ebp, ebp
mov esi, 0xa
je 0x41d781
mov eax, ebp
mov ebx, 1
lea edx, [eax + 1]
jmp 0x41d760
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d760
push 0
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x36]
push 1
push ecx
call fcn.00419e00
mov esi, eax
add esp, 0x14
add esi, 0xa
mov ebp, dword [edi + 0x70]
test ebp, ebp
je 0x41d7ae
mov eax, ebp
inc ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d790
push 0
sub eax, edx
push eax
push ebp
lea edx, [esp + esi + 0x2c]
push 0xb
push edx
call fcn.00419e00
add esp, 0x14
add esi, eax
mov eax, dword [edi + 0x54]
test eax, eax
je 0x41d7cb
push eax
lea eax, [esp + esi + 0x24]
push str.users
push eax
inc ebx
call fcn.00419ea0
add esp, 0xc
add esi, eax
mov eax, dword [edi + 0x58]
test eax, eax
je 0x41d7e8
push eax
lea ecx, [esp + esi + 0x24]
push str.lowusers
push ecx
inc ebx
call fcn.00419ea0
add esp, 0xc
add esi, eax
lea edx, [edi + 0x3c]
push edx
call fcn.0040f240
add esp, 4
cmp eax, 0x1869f
je 0x41d811
push eax
lea eax, [esp + esi + 0x24]
push 0x455df0
push eax
inc ebx
call fcn.00419ea0
add esp, 0xc
add esi, eax
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x41d82e
push eax
lea ecx, [esp + esi + 0x24]
push str.files
push ecx
inc ebx
call fcn.00419ea0
add esp, 0xc
add esi, eax
mov eax, dword [edi + 0x60]
test eax, eax
je 0x41d862
push eax
lea edx, [esp + esi + 0x24]
push str.maxusers
push edx
add ebx, 2
call fcn.00419ea0
add esi, eax
mov eax, dword [edi + 0x60]
push eax
lea ecx, [esp + esi + 0x30]
push 0x455dd8
push ecx
call fcn.00419ea0
add esp, 0x18
add esi, eax
mov eax, dword [edi + 0x64]
test eax, eax
je 0x41d87f
push eax
lea edx, [esp + esi + 0x24]
push 0x455dd4
push edx
inc ebx
call fcn.00419ea0
add esp, 0xc
add esi, eax
mov eax, dword [edi + 0x68]
test eax, eax
je 0x41d89c
push eax
lea eax, [esp + esi + 0x24]
push 0x455dd0
push eax
inc ebx
call fcn.00419ea0
add esp, 0xc
add esi, eax
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x41d8b9
push eax
lea ecx, [esp + esi + 0x24]
push 0x455dcc
push ecx
inc ebx
call fcn.00419ea0
add esp, 0xc
add esi, eax
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x41d908
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
push str._d._d
push eax
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x28], 0x2d
call fcn.00422fc4
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
shl edx, 0x10
add edx, ebp
push edx
lea eax, [esp + esi + 0x34]
push 0x455dc0
push eax
inc ebx
call fcn.00419ea0
add esp, 0x1c
add esi, eax
mov ebp, dword [edi + 0x78]
test ebp, ebp
je 0x41d936
mov eax, ebp
inc ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d915
push 0
sub eax, edx
push eax
push ebp
lea ecx, [esp + esi + 0x2c]
push 0x85
push ecx
call fcn.00419e00
add esp, 0x14
add esi, eax
mov ebp, dword [edi + 0x80]
test ebp, ebp
je 0x41d967
mov eax, ebp
inc ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d946
push 0
sub eax, edx
push eax
push ebp
lea edx, [esp + esi + 0x2c]
push 0x93
push edx
call fcn.00419e00
add esp, 0x14
add esi, eax
mov eax, dword [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x28]
push 1
push ecx
mov dword [esp + 0x36], ebx
call fcn.00424d54
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x2c]
add esp, 0x10
mov esi, 5
mov edi, dword [edi]
cmp edi, 0x45a4c0
jne 0x41d710
push 0x45a4c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call fcn.00423942
add esp, 4
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x410]
call fcn.004233fe
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
or eax, 0xffffffff
pop esi
call fcn.004233fe
add esp, 0x414
ret