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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c51e0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0xbc]
lea eax, [edi + 0xb8]
xor esi, esi
cmp ecx, esi
je 0x41e6c8
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
je 0x41e6c8
push esi
call fcn.004225d0
mov eax, dword [eax]
mov dword [edi + 0xb4], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x7c]
mov eax, dword [edi + 0xb4]
push 1
push esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
push esi
lea esi, [esp + 0x28]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call fcn.0040c7f0
test al, al
jne 0x41e765
xor ebx, ebx
push ebx
push 0x4cb7f8
lea esi, [esp + 0x50]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
call fcn.00401700
mov dword [esp + 0x70], ebx
mov esi, dword [edi]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x10000002
mov ecx, edi
call edx
cmp dword [esp + 0x60], 8
jb 0x41e74e
mov eax, dword [esp + 0x4c]
push eax
call fcn.004abbe4
add esp, 4
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x14]
jne 0x41e779
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x18]
je 0x41e7a8
mov eax, dword [ebx + 0x7c]
mov ecx, dword [ebx + 0x78]
push 0
push eax
mov eax, dword [edi + 0xb4]
push ecx
lea esi, [esp + 0x28]
call fcn.0040c7f0
test al, al
je 0x41e74e
mov edx, dword [esp + 0x1c]
cmp edx, dword [ebx + 0x78]
jne 0x41e74e
mov eax, dword [esp + 0x20]
cmp eax, dword [ebx + 0x7c]
jne 0x41e74e
xor esi, esi
lea ebx, [edi + 8]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov eax, ebx
mov dword [esp + 0x70], 1
mov dword [esp + 0x14], esi
call fcn.00414470
test eax, eax
ja 0x41e894
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x70]
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call edx
mov byte [esp + 0x70], 3
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x41e9db
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
push ecx
push ecx
push 0x30000003
mov ecx, edi
call edx
mov byte [esp + 0x70], 1
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x41e841
or ecx, 0xffffffff
lea eax, [esi + 4]
lock xadd dword [eax], ecx
jne 0x41e841
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
or edx, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], edx
jne 0x41e841
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x41e9c4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
push ecx
push edx
call fcn.0046d420
mov eax, dword [esp + 0x44]
push eax
call fcn.004abbe4
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x14]
mov cl, byte [edi + 0x110]
test cl, cl
jne 0x41e7d4
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x41e8b5
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x41e8ba
call fcn.004ac22f
mov edx, dword [ebx + 4]
mov ecx, dword [edx + esi*8]
lea eax, [edx + esi*8]
mov esi, dword [eax + 4]
test esi, esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], esi
je 0x41e8de
lea eax, [esi + 4]
mov edx, 1
lock xadd dword [eax], edx
sub esp, 8
test esi, esi
mov byte [esp + 0x78], 2
mov eax, esp
mov dword [eax], ecx
mov dword [esp + 0x24], esp
mov dword [eax + 4], esi
je 0x41e901
lea eax, [esi + 4]
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0x40]
push edx
lea eax, [edi + 0xe4]
push eax
mov ecx, edi
call fcn.0041fa30
test al, al
mov byte [esp + 0x70], 1
je 0x41e96a
test esi, esi
je 0x41e94b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41e94b
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41e94b
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [esp + 0x14]
add esi, 1
mov eax, ebx
mov dword [esp + 0x14], esi
call fcn.00414470
cmp esi, eax
jb 0x41e890
jmp 0x41e7d4
test esi, esi
je 0x41e998
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41e998
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41e998
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x41e9c4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
push ecx
push edx
call fcn.0046d420
mov eax, dword [esp + 0x44]
push eax
call fcn.004abbe4
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esp + 0x28]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x24], esp
je 0x41ea0c
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
push esi
lea edx, [esp + 0x44]
push edx
mov ecx, edi
call fcn.0041ff90
test al, al
mov byte [esp + 0x70], 1
mov esi, dword [esp + 0x2c]
je 0x41e813
test esi, esi
je 0x41ea58
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41ea58
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41ea58
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x41ea84
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
push ecx
push edx
call fcn.0046d420
mov eax, dword [esp + 0x44]
push eax
call fcn.004abbe4
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8