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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
test edi, edi
jne 0x411781
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x411794
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp + 0x10], ebx
lea esi, [ebx + ebx]
push esi
lea ecx, [esp + 0x10]
call fcn.004135d0
lea ecx, [esi + esi]
mov esi, dword [esp + 0xc]
push ecx
push 0
push esi
call fcn.00401670
add esp, 0xc
lea eax, [ebx + 1]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call fcn.00413e60
push eax
call fcn.00413e60
mov ecx, dword [ebp + 0x10]
mov edi, eax
sub edi, esi
mov dword [esp + 0x24], 0
sar edi, 1
mov ebx, ecx
inc edi
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], ebx
cmp ecx, edi
jle 0x411eb5
cmp ebx, ecx
jne 0x4119bb
lea eax, [esi + ebx*2]
mov dword [esp + 0x20], eax
movzx eax, word [eax - 2]
cmp eax, 0x2f
je 0x4119bb
cmp eax, 0x5c
je 0x4119bb
push 0xffffffffffffffff
push esi
call fcn.0040e210
mov dword [esp + 0x28], eax
cmp eax, esi
je 0x4119bb
mov ebx, 0x446aa0
mov edi, dword [ebx - 4]
add edi, dword [esp + 0x14]
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ecx, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0xa0], 0
mov eax, edi
mov dword [esp + 0xa4], 0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
test edi, edi
jne 0x41188d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [esp + 0x94], esi
mov word [esp + 0x90], ax
add eax, 2
mov word [esp + 0x92], ax
lea eax, [esp + 0x90]
push 0x60
mov dword [esp + 0x64], eax
lea eax, [esp + 0xa4]
push 1
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0x18
push eax
push 0x120001
lea eax, [esp + 0x2c]
mov dword [esp + 0x78], 0x40
push eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jne 0x41199c
inc dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41198d
mov eax, dword [ecx]
test eax, eax
je 0x411921
mov eax, dword [eax - 8]
jmp 0x411923
xor eax, eax
mov dword [esp + 0xc], eax
inc eax
push eax
call fcn.00413540
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
push edi
push esi
lea ecx, [eax + eax*2]
mov eax, dword [edx]
shl ecx, 2
mov dword [eax + ecx], 0
mov dword [eax + ecx + 4], 0
mov dword [eax + ecx + 8], 0
mov edx, dword [edx]
movzx eax, word [ebx - 8]
add edx, ecx
or eax, dword [esp + 0x24]
mov dword [edx], eax
mov eax, dword [esp + 0x20]
mov dword [edx + 4], eax
cmp byte [0x430f39], 0
je 0x41197d
mov ecx, edx
call fcn.00413800
jmp 0x41199c
lea ecx, [edx + 8]
call fcn.0040f9f0
xor ecx, ecx
mov word [eax + edi*2], cx
jmp 0x41199c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41199c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 0x48
cmp ebx, 0x446bc0
jl 0x411836
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
sub ebx, esi
sar ebx, 1
mov dword [esp + 0x14], ebx
lea ecx, [ebx - 2]
cmp ecx, edi
jl 0x4119d5
movzx eax, word [esi + ecx*2]
cmp eax, 0x2f
je 0x4119d5
cmp eax, 0x5c
je 0x4119d5
dec ecx
cmp ecx, edi
jge 0x4119c2
inc ecx
mov eax, ebx
sub eax, ecx
push eax
lea edx, [eax - 1]
lea eax, [esi + ecx*2]
mov dword [esp + 0x24], edx
lea edx, [esi + ebx*2]
push eax
push edx
mov dword [esp + 0x98], edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [esp + 0x20]
lea eax, [ecx + ebx]
lea edx, [esi + eax*2]
mov eax, 0x446aa0
mov dword [esp + 0x88], edx
mov dword [esp + 0xc], eax
mov edi, dword [eax - 4]
push eax
add edi, ecx
push edx
add edi, ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ecx, ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0xa8], 0
mov eax, edi
mov dword [esp + 0xac], 0
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
test edi, edi
jne 0x411a6b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [esp + 0x9c], esi
mov word [esp + 0x98], ax
add eax, 2
mov word [esp + 0x9a], ax
lea eax, [esp + 0x98]
push 0x60
mov dword [esp + 0x7c], eax
lea eax, [esp + 0xac]
push 1
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], 0x18
push eax
push 0x120001
lea eax, [esp + 0x3c]
mov dword [esp + 0x90], 0x40
push eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jne 0x411cd3
inc dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x411cc4
mov eax, dword [ecx]
test eax, eax
je 0x411b09
mov ebx, dword [eax - 8]
jmp 0x411b0b
xor ebx, ebx
lea eax, [ebx + 1]
push eax
call fcn.00413540
mov edx, dword [ebp + 0xc]
lea ecx, [ebx + ebx*2]
shl ecx, 2
xor ebx, ebx
mov eax, dword [edx]
mov dword [eax + ecx], ebx
mov dword [eax + ecx + 4], ebx
mov dword [eax + ecx + 8], ebx
mov edx, dword [edx]
mov eax, dword [esp + 0xc]
add edx, ecx
mov dword [esp + 0x18], edx
movzx eax, word [eax - 8]
or eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], eax
cmp byte [0x430f39], bl
je 0x411c7f
test esi, esi
je 0x411b79
test edi, edi
jne 0x411b6a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x18]
mov edi, eax
lea ebx, [edx + 8]
push edi
mov ecx, ebx
call fcn.004135d0
mov eax, dword [ebx]
jmp 0x411bd5
mov eax, dword [edx + 8]
lea ebx, [edx + 8]
lea ecx, [eax - 8]
test eax, eax
jne 0x411b9b
push 0x214
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x411bc3
cmp dword [ecx + 4], 0x104
jb 0x411bae
mov dword [ecx], 0x104
mov eax, dword [ebx]
jmp 0x411bd9
push 0x214
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [eax + 4], 0x104
mov dword [eax], 0x104
add eax, 8
mov dword [ebx], eax
mov edx, dword [esp + 0x18]
test eax, eax
je 0x411be2
mov ecx, dword [eax - 8]
jmp 0x411be4
xor ecx, ecx
push 0
push ecx
push eax
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov edx, dword [ebx]
mov edi, eax
test edx, edx
je 0x411bfe
mov eax, dword [edx - 8]
jmp 0x411c00
xor eax, eax
cmp edi, eax
jbe 0x411c36
lea eax, [edi - 1]
mov ecx, ebx
push eax
call fcn.004135d0
mov eax, dword [ebx]
test eax, eax
je 0x411c1a
mov ecx, dword [eax - 8]
jmp 0x411c1c
xor ecx, ecx
push 0
push ecx
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 8]
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x411c69
cmp cx, 0x3a
je 0x411c51
movzx ecx, word [edx + eax*2 + 2]
inc eax
test cx, cx
jne 0x411c40
test eax, eax
jle 0x411c69
dec eax
sub edi, eax
lea eax, [edx + eax*2]
lea ecx, [edi + edi]
push ecx
push eax
push edx
call fcn.004015a0
add esp, 0xc
push edi
mov ecx, ebx
call fcn.004135d0
mov eax, dword [ebx]
xor ecx, ecx
mov ebx, dword [esp + 0x14]
mov word [eax + edi*2], cx
jmp 0x411cd3
lea ebx, [edx + 8]
push edi
mov ecx, ebx
call fcn.004135d0
mov eax, dword [ebx]
add edi, edi
push edi
test esi, esi
je 0x411cab
push esi
push eax
call fcn.004015a0
mov eax, dword [ebx]
add esp, 0xc
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov word [edi + eax], cx
jmp 0x411cd3
push 0
push eax
call fcn.00401670
mov eax, dword [ebx]
add esp, 0xc
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov word [edi + eax], cx
jmp 0x411cd3
mov eax, dword [esp + 0x28]
test eax, eax
je 0x411cd3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
add eax, 0x48
mov edx, dword [esp + 0x88]
mov dword [esp + 0xc], eax
cmp eax, 0x446bc0
jl 0x411a11
mov eax, dword [esp + 0x1c]
mov edi, 0x446a0c
lea ecx, [ecx]
test eax, eax
jne 0x411d0e
cmp word [edi - 4], ax
jne 0x411e2c
mov ebx, dword [edi]
lea eax, [edi + 4]
add ebx, dword [esp + 0x14]
push eax
push dword [esp + 0x90]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ecx, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x50], 0
mov eax, ebx
mov dword [esp + 0x54], 0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
test ebx, ebx
jne 0x411d64
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [esp + 0x34], esi
mov word [esp + 0x30], ax
add eax, 2
mov word [esp + 0x32], ax
lea eax, [esp + 0x30]
push 0x21
mov dword [esp + 0x44], eax
lea eax, [esp + 0x54]
push 1
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x18
push eax
push 0x120001
lea eax, [esp + 0x34]
mov dword [esp + 0x58], 0x40
push eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jne 0x411e28
inc dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x411e1d
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x411e06
push 4
push 0x1000
push 0x10000
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
push 0x10000
push edx
push ecx
push ebx
push esi
push dword [esp + 0x30]
push eax
call fcn.00412000
mov eax, dword [esp + 0xc]
test eax, eax
je 0x411e28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
add edi, 0x48
cmp edi, 0x446a9c
jl 0x411d00
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
test ebx, ebx
jne 0x411e54
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
movzx ecx, word [esi + ebx*2 - 2]
dec ebx
cmp ecx, 0x2f
je 0x411e64
cmp ecx, 0x5c
jne 0x411e65
dec ebx
test ebx, ebx
js 0x411e9d
lea esp, [esp]
movzx eax, word [esi + ebx*2]
cmp eax, 0x2f
je 0x411fbe
cmp eax, 0x5c
je 0x411fbe
cmp eax, 0x3a
je 0x411fb6
cmp eax, 0x3f
je 0x411fb6
sub ebx, 1
jns 0x411e70
mov ebx, 0xfffffffe
mov edi, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
cmp ebx, edi
jg 0x4117f8
mov eax, dword [0x4467d8]
test eax, eax
je 0x411fc4
cmp word [0x446fc8], 0
je 0x411fc4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
test eax, eax
jne 0x411ef7
push 0x446fc8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [esp + 0x34], 0x446fc8
mov word [esp + 0x30], ax
add eax, 2
mov word [esp + 0x32], ax
lea eax, [esp + 0x30]
push 0x21
mov dword [esp + 0x44], eax
lea eax, [esp + 0x54]
push 1
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x18
push eax
push 0x120001
lea eax, [esp + 0x40]
mov dword [esp + 0x58], 0x40
push eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jne 0x411fc4
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
test eax, eax
jne 0x411f83
push 4
push 0x1000
push 0x10000
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x24], eax
push 0x10000
push eax
push dword [ebp + 0xc]
push dword [0x4467d8]
push 0x446fc8
push 0
push edi
call fcn.00412000
mov ebx, dword [esp + 0x10]
test eax, eax
jle 0x411fa9
add ebx, eax
test edi, edi
je 0x411fc8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411fc8
or ebx, 0xffffffff
jmp 0x411ea2
inc ebx
jmp 0x411ea2
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x411fde
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test esi, esi
je 0x411ff5
add esi, 0xfffffff8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc