Function at 0x40b0e0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x48a950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
mov eax, dword [esi]
push edi
push eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
push 0x254
call fcn.0047c5d9
add esp, 4
lea ecx, [esp + 0x30]
mov ebp, eax
call fcn.00460278
xor edi, edi
cmp dword [esp + 0x5c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], 2
je 0x40b149
mov dword [esp + 0x10], 3
push 0x48ef84
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.00402dd0
add esp, 0xc
mov eax, dword [eax]
push edi
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 1
call fcn.0046030d
mov esi, eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b193
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.0047c701
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x58], edi
mov byte [esp + 0x50], 2
call fcn.0047c701
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x5c], ebx
test esi, esi
mov byte [esp + 0x50], 3
je 0x40b484
jmp 0x40b1d0
lea ecx, [esp + 0x30]
call fcn.00460020
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call fcn.004605fa
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
mov byte [esp + 0x50], 4
je 0x40b24b
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40b239
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40b239
push eax
call fcn.00401ee0
mov dword [esp + 0x1c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40b22c
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov edi, dword [esp + 0x18]
add edi, 0x10
mov dword [esp + 0x58], edi
jmp 0x40b24b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.00402060
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x50], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b26e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x40b2c7
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40b2b5
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40b2b5
push eax
call fcn.00401ee0
add esp, 4
mov dword [esp + 0x18], eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40b2a8
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ebx, dword [esp + 0x18]
add ebx, 0x10
mov dword [esp + 0x5c], ebx
jmp 0x40b2c7
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x64]
call fcn.00402060
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx - 0xc]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x40b2e9
push esi
lea ecx, [esp + 0x60]
call fcn.00401e90
mov ebx, dword [esp + 0x5c]
push ebx
call fcn.0046a81b
add esp, 4
test esi, esi
jl 0x40b4fa
cmp esi, dword [ebx - 8]
jg 0x40b4fa
push 0x49162c
mov dword [ebx - 0xc], esi
push ebx
mov word [ebx + esi*2], 0
call fcn.0046a6b0
add esp, 8
test eax, eax
je 0x40b479
push 0x491618
push ebx
call fcn.0046a6b0
add esp, 8
test eax, eax
je 0x40b479
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x12c]
push eax
push ebx
call fcn.0046a6b0
add esp, 8
test eax, eax
je 0x40b479
mov esi, dword [sym.imp.kernel32.dll_lstrcpyW]
push edi
push ebp
call esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x34]
call fcn.004601b9
push 0x491610
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.0040b060
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 5
call fcn.00402230
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x50], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x58]
push edi
lea eax, [ebp + 0x200]
push eax
call esi
mov edx, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
call dword [edx + 0x38]
test eax, eax
je 0x40b3ea
push 0x48ee44
lea eax, [ebp + 0x228]
push eax
call esi
mov dword [ebp + 0x250], 1
jmp 0x40b460
lea ecx, [esp + 0x30]
call fcn.0046005a
test edx, edx
ja 0x40b3fe
cmp eax, 0x400
jbe 0x40b434
shrd eax, edx, 0xa
shr edx, 0xa
push edx
push eax
lea ecx, [esp + 0x60]
push 0x491460
push ecx
call fcn.00402db0
push 0x491608
call fcn.00469d6f
add esp, 0x14
push eax
push 0x491608
lea ecx, [esp + 0x60]
call fcn.00402190
jmp 0x40b448
push edx
push eax
lea edx, [esp + 0x60]
push 0x491460
push edx
call fcn.00402db0
add esp, 0x10
mov edi, dword [esp + 0x58]
push edi
lea eax, [ebp + 0x228]
push eax
call esi
mov dword [ebp + 0x250], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x1c]
push ecx
push ebp
push 0x464
push eax
call dword [sym.imp.user32.dll_SendMessageW]
cmp dword [esp + 0x24], 0
jne 0x40b1d0
push ebp
call fcn.0047c604
add esp, 4
lea ecx, [esp + 0x30]
call fcn.0045ff50
add ebx, 0xfffffff0
mov byte [esp + 0x50], 2
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b4b5
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [esp + 0x50], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b4d4
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], 0xffffffff
call fcn.0046029e
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8
push 0x80070057
call fcn.00401c10
int3