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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41cf66
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2064
call fcn.00411e50
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.00410460
add esp, 0xc
cmp edi, ebx
je 0x402fb5
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402fa0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x402fb7
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 0x403028
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x403000
jle 0x402ffe
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x403028
lea ecx, [esp + 0x18]
cmp esi, ecx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
je 0x403151
mov ecx, esi
call fcn.00403e70
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
jmp 0x403145
cmp dword [esp + 0x6c], 2
je 0x403037
lea edx, [esp + 0x18]
cmp esi, edx
jmp 0x403006
mov eax, dword [esp + 0x74]
cmp eax, 0x32
jbe 0x403049
mov eax, 0x32
mov dword [esp + 0x74], eax
push eax
lea ecx, [esp + 0x1c]
call fcn.00403a30
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x74], ebx
jbe 0x40311a
lea edi, [esp + 0x78]
mov ebx, dword [edi + 4]
push 4
lea ebx, [esp + ebx + 0x70]
push 0x421544
push ebx
call fcn.0041224d
add esp, 0xc
test eax, eax
jne 0x403085
add ebx, 8
jmp 0x4030a4
push 0x18
push str.DeviceLanmanRedirector
push ebx
call fcn.0041224d
add esp, 0xc
test eax, eax
jne 0x4030a4
add ebx, 0x2e
mov eax, 0x5c
mov word [ebx], ax
movzx ecx, byte [edi]
push ecx
lea esi, [esp + 0x34]
call fcn.004020d0
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.00403b40
mov byte [esp + 0x2080], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4030fe
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x4030fe
push eax
call fcn.004101bf
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
add edi, 0x10
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x74]
jb 0x403065
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 0x403151
mov ecx, esi
call fcn.00403e70
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.00403e70
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.00410451
mov esp, ebp
pop ebp
ret 8