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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41cfe6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2064
call fcn.00411eb0
mov eax, dword [0x424308]
xor eax, esp
mov dword [esp + 0x2060], eax
push ebx
push esi
push edi
mov eax, dword [0x424308]
xor eax, esp
push eax
lea eax, [esp + 0x2078]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push 0x1fff
lea eax, [esp + 0x71]
push ebx
mov dword [esp + 0x2088], ebx
push eax
mov byte [esp + 0x78], bl
call fcn.004104c0
add esp, 0xc
cmp edi, ebx
je 0x402f75
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402f60
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x402f77
xor eax, eax
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
push ebx
lea edx, [esp + 0x18]
push edx
push 0x2000
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [ecx + 0x18]
push edi
push 0x2ac044
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x402fe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x402fc0
jle 0x402fbe
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x402fe8
lea ecx, [esp + 0x18]
cmp esi, ecx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
je 0x403111
mov ecx, esi
call fcn.00403f00
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
jmp 0x403105
cmp dword [esp + 0x6c], 2
je 0x402ff7
lea edx, [esp + 0x18]
cmp esi, edx
jmp 0x402fc6
mov eax, dword [esp + 0x74]
cmp eax, 0x32
jbe 0x403009
mov eax, 0x32
mov dword [esp + 0x74], eax
push eax
lea ecx, [esp + 0x1c]
call fcn.004039f0
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x74], ebx
jbe 0x4030da
lea edi, [esp + 0x78]
mov ebx, dword [edi + 4]
push 4
lea ebx, [esp + ebx + 0x70]
push 0x421544
push ebx
call fcn.004122af
add esp, 0xc
test eax, eax
jne 0x403045
add ebx, 8
jmp 0x403064
push 0x18
push str.DeviceLanmanRedirector
push ebx
call fcn.004122af
add esp, 0xc
test eax, eax
jne 0x403064
add ebx, 0x2e
mov eax, 0x5c
mov word [ebx], ax
movzx ecx, byte [edi]
push ecx
lea esi, [esp + 0x34]
call fcn.00402090
mov byte [esp + 0x2080], 1
movzx edx, word [edi + 8]
movzx ecx, word [edi + 0xc]
movzx eax, word [edi + 0xa]
mov dword [esp + 0x60], edx
mov edx, esi
mov dword [esp + 0x68], ecx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], eax
call fcn.00403b00
mov byte [esp + 0x2080], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4030be
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x4030be
push eax
call fcn.0041021f
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
add edi, 0x10
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x74]
jb 0x403025
mov esi, dword [esp + 0x28]
xor ebx, ebx
lea edx, [esp + 0x18]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, edx
je 0x403111
mov ecx, esi
call fcn.00403f00
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x18]
call fcn.00403f00
mov eax, esi
mov ecx, dword [esp + 0x2078]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2060]
xor ecx, esp
call fcn.004104b1
mov esp, ebp
pop ebp
ret 8