Function at 0x40db30
Capabilities:
Create directory
Delete directory
Delete file
Get common file path

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x420]
lea edi, [ebp - 0x45c]
push ebx
lea ebx, [ebp - 0x218]
sub esp, 0x490
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x41bd14
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
sub esp, 0x10
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [ebp - 0x474], eax
call eax
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov edx, dword [0x448004]
mov dword [ebp - 0x454], eax
sub esp, 4
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call dword [ecx + 0x54]
sub esp, 0xc
mov edi, eax
mov eax, 0x45a
call fcn.00406da0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x454]
mov dword [esp], eax
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x478], eax
call eax
mov eax, dword [ebp - 0x45c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x64]
sub esp, 8
mov edi, eax
mov eax, 0x45e
call fcn.00406da0
xor eax, eax
cmp edi, 0x80004003
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x45c]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 8
mov edi, eax
mov eax, 0x461
call fcn.00406da0
xor eax, eax
cmp edi, 0x80004003
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
lea edi, [ebp - 0x454]
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x45c]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 8
mov edi, eax
mov eax, 0x464
call fcn.00406da0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, 0x465
call fcn.00406da0
mov eax, esi
shr eax, 0x10
je 0x40e9d0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x40dd24
mov eax, esi
call fcn.00406dc0
mov edx, eax
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x47c], edx
call fcn.00406fa0
mov edi, eax
mov eax, dword [ebp - 0x454]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
mov edx, dword [ebp - 0x47c]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 0xc], edx
movzx eax, al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.got__s__expected__s_n
call fcn.004077c0
mov eax, dword [ebp - 0x454]
mov dword [esp], eax
mov eax, dword [ebp - 0x478]
call eax
xor eax, eax
sub esp, 4
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x40dd90
cmp word [ebp - 0x218], 0
mov edx, ebx
je 0x40ddb9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40ddb0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x41c34c]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40ddc0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov eax, dword [ebp - 0x474]
call eax
xor eax, eax
sub esp, 8
lea esi, [esi]
nop
movzx edx, word [esi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x40ddf0
cmp word [ebp - 0x218], 0
mov edx, ebx
je 0x40de19
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40de10
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x41c344]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40de20
mov dword [esp + 4], 0
mov dword [esp], ebx
mov eax, dword [ebp - 0x474]
call eax
mov eax, dword [ebp - 0x45c]
lea ecx, [ebp - 0x470]
sub esp, 8
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x64]
sub esp, 8
mov edi, eax
mov eax, 0x471
call fcn.00406da0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
lea edi, [ebp - 0x468]
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x470]
mov ecx, 0x472
mov edx, 0x41c988
call fcn.004077e0
mov eax, dword [ebp - 0x45c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x468], 0
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x28]
sub esp, 8
mov dword [ebp - 0x47c], eax
mov eax, 0x477
call fcn.00406da0
mov edx, dword [ebp - 0x47c]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov eax, 0x478
call fcn.00406da0
mov eax, dword [ebp - 0x468]
mov dword [esp + 4], str.Unexpected_value__lu._n
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x40df40
cmp word [ebp - 0x218], 0
mov edx, ebx
je 0x40df69
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40df60
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x41c33c]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40df70
mov dword [esp + 4], 0
mov dword [esp], ebx
mov eax, dword [ebp - 0x474]
call eax
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x468], 0
sub esp, 8
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x28]
sub esp, 8
mov edi, eax
mov eax, 0x481
call fcn.00406da0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, 0x482
call fcn.00406da0
mov eax, dword [ebp - 0x468]
mov dword [esp + 4], str.Unexpected_value__lu._n
cmp eax, 3
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x470]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 8
mov edi, eax
mov eax, 0x485
call fcn.00406da0
xor eax, eax
cmp edi, 0x80004003
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x470]
lea edx, [ebp - 0x464]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x4232d8
mov dword [esp], eax
call dword [ecx]
sub esp, 0xc
mov edi, eax
mov eax, 0x488
call fcn.00406da0
xor eax, eax
cmp edi, 0x80004002
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov edi, dword [ebp - 0x470]
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 4]
mov eax, dword [edi]
sub esp, 4
mov dword [esp], edi
call dword [eax + 8]
lea edx, [ebp - 0x464]
mov dword [ebp - 0x464], 0
mov edi, eax
mov eax, dword [ebp - 0x470]
sub esp, 4
mov ecx, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [ecx + 0x24]
sub esp, 8
mov dword [ebp - 0x474], eax
mov eax, 0x48f
call fcn.00406da0
mov edx, dword [ebp - 0x474]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov edx, dword [ebp - 0x470]
mov eax, dword [edx]
mov dword [esp], edx
mov dword [ebp - 0x474], edx
call dword [eax + 4]
mov edx, dword [ebp - 0x474]
sub esp, 4
mov eax, dword [edx]
mov dword [esp], edx
call dword [eax + 8]
sub esp, 4
mov dword [ebp - 0x474], eax
mov eax, 0x492
call fcn.00406da0
mov dword [esp + 0xc], edi
add edi, 1
xor eax, eax
mov edx, dword [ebp - 0x474]
mov dword [esp + 4], str.Unexpected_value__ld___ld._n
cmp edi, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x460], 0
lea ecx, [ebp - 0x460]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 8
mov edi, eax
mov eax, 0x496
call fcn.00406da0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, 0x497
call fcn.00406da0
mov edx, dword [ebp - 0x464]
mov eax, dword [ebp - 0x460]
mov dword [esp + 4], str.got__p___p_n
cmp edx, eax
mov dword [esp + 8], eax
setne al
mov dword [esp + 0xc], edx
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x460]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov edi, dword [ebp - 0x470]
sub esp, 4
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 4]
mov eax, dword [edi]
sub esp, 4
mov dword [esp], edi
call dword [eax + 8]
lea ecx, [ebp - 0x46c]
mov edi, eax
mov eax, dword [ebp - 0x464]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x4232d8
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov dword [ebp - 0x474], eax
mov eax, 0x49d
call fcn.00406da0
mov edx, dword [ebp - 0x474]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov edx, dword [ebp - 0x470]
mov eax, dword [edx]
mov dword [esp], edx
mov dword [ebp - 0x474], edx
call dword [eax + 4]
mov edx, dword [ebp - 0x474]
sub esp, 4
mov eax, dword [edx]
mov dword [esp], edx
call dword [eax + 8]
sub esp, 4
mov dword [ebp - 0x474], eax
mov eax, 0x49f
call fcn.00406da0
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x474]
xor eax, eax
mov dword [esp + 4], str.Unexpected_value__ld___ld._n
cmp edi, edx
mov dword [esp + 8], edx
sete al
xor edi, edi
mov dword [esp], eax
call fcn.004077c0
mov dword [esp], 0x4a1
xor edx, edx
mov ecx, dword [ebp - 0x468]
mov eax, dword [ebp - 0x46c]
call fcn.0040d690
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 0
lea eax, [ebp - 0x450]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_VariantInit]
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x458], 0
lea ecx, [ebp - 0x458]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0x450]
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov dword [ebp - 0x474], eax
call fcn.00416600
mov edx, dword [ebp - 0x474]
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x4a8
xor eax, eax
test edx, edx
sete al
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._d:_Unexpected_hr__lx._n
call fcn.004077c0
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x4a9
mov eax, dword [ebp - 0x458]
mov dword [esp + 8], edi
cmp eax, 1
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str._d:_unexpected_value__lu._n
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
call fcn.00416600
mov dword [eax], 0x41b595
movzx edx, word [ebp - 0x450]
mov dword [eax + 4], 0x4aa
cmp dx, 9
mov dword [esp + 0xc], edx
sete al
mov dword [esp + 8], edi
movzx eax, al
mov dword [esp + 4], str._d:_got_type__d_n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x448]
lea ecx, [ebp - 0x45c]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x41ca08
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov dword [ebp - 0x474], eax
call fcn.00416600
mov edx, dword [ebp - 0x474]
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x4ad
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x454], 0
lea ecx, [ebp - 0x454]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 8
mov dword [ebp - 0x474], eax
call fcn.00416600
mov edx, dword [ebp - 0x474]
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x4b1
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
mov dword [esp + 4], 0x41c34e
mov eax, dword [ebp - 0x454]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40e9a0
add dword [ebp - 0x47c], 1
mov eax, dword [ebp - 0x454]
add edi, 1
mov dword [esp], eax
mov eax, dword [ebp - 0x478]
call eax
mov eax, dword [ebp - 0x45c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
lea eax, [ebp - 0x450]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_VariantClear]
sub esp, 4
cmp edi, 3
jne 0x40e30c
mov eax, 0x4c0
call fcn.00406da0
mov edi, dword [ebp - 0x484]
mov dword [esp + 0x10], edi
mov eax, dword [ebp - 0x480]
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0x47c]
mov dword [esp + 4], str.each_folder_should_be_found_1_time_instead_of__d__d__d_n
cmp ecx, 1
mov dword [esp + 8], ecx
sete dl
cmp eax, 1
sete al
and edx, eax
xor eax, eax
cmp edi, 1
sete al
lea edi, [ebp - 0x458]
and eax, edx
mov dword [esp], eax
call fcn.004077c0
lea eax, [ebp - 0x450]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_VariantInit]
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x458], 0xffffffff
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0xc], edi
lea edi, [ebp - 0x450]
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov edi, eax
mov eax, 0x4c7
call fcn.00406da0
xor eax, eax
cmp edi, 1
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, 0x4c8
call fcn.00406da0
mov eax, dword [ebp - 0x458]
mov dword [esp + 4], str.Unexpected_value__lu._n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x46c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 4
mov edi, eax
mov eax, 0x4cb
call fcn.00406da0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x46c]
mov edx, dword [eax]
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 8
mov edi, eax
mov eax, 0x4cd
call fcn.00406da0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x46c]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 8
mov edi, eax
mov eax, 0x4cf
call fcn.00406da0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
lea edi, [ebp - 0x440]
mov dword [esp], eax
call fcn.004077c0
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_VariantInit]
lea ecx, [ebp - 0x430]
sub esp, 4
mov dword [esp], ecx
call dword [sym.imp.oleaut32.dll_VariantInit]
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x458], 0xffffffff
lea ecx, [ebp - 0x458]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov dword [ebp - 0x474], eax
mov eax, 0x4d5
call fcn.00406da0
mov edx, dword [ebp - 0x474]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov eax, 0x4d6
call fcn.00406da0
mov eax, dword [ebp - 0x458]
mov dword [esp + 4], str.Unexpected_value__lu._n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x458], 0xffffffff
lea ecx, [ebp - 0x458]
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov dword [ebp - 0x474], eax
mov eax, 0x4d9
call fcn.00406da0
mov edx, dword [ebp - 0x474]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov eax, 0x4da
call fcn.00406da0
mov eax, dword [ebp - 0x458]
mov dword [esp + 4], str.Unexpected_value__lu._n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
mov eax, 0x4db
call fcn.00406da0
movzx edx, word [ebp - 0x440]
mov dword [esp + 4], str.got_type__d_n
cmp dx, 9
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
mov dword [esp], edi
call dword [sym.imp.oleaut32.dll_VariantClear]
lea ecx, [ebp - 0x430]
sub esp, 4
mov dword [esp], ecx
call dword [sym.imp.oleaut32.dll_VariantClear]
mov eax, dword [ebp - 0x46c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x464]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
xor eax, eax
sub esp, 4
lea esi, [esi]
nop
movzx edx, word [esi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x40e888
cmp word [ebp - 0x218], 0
mov edx, ebx
je 0x40e8b1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40e8a8
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x41c34c]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40e8b8
mov dword [esp], ebx
mov edi, dword [sym.imp.kernel32.dll_RemoveDirectoryW]
call edi
xor eax, eax
sub esp, 4
lea esi, [esi]
nop
movzx edx, word [esi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x40e8e0
cmp word [ebp - 0x218], 0
mov edx, ebx
je 0x40e909
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40e900
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x41c344]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40e910
mov dword [esp], ebx
call edi
xor eax, eax
sub esp, 4
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x40e930
cmp word [ebp - 0x218], 0
mov edx, ebx
je 0x40e959
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40e950
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x41c33c]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40e960
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp], esi
call edi
mov eax, dword [ebp - 0x470]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [esp + 4], 0x41c346
mov eax, dword [ebp - 0x454]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40e9f0
add dword [ebp - 0x480], 1
jmp 0x40e4e8
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00406a40
mov edx, eax
jmp 0x40dd24
mov dword [esp + 4], 0x41c33e
mov eax, dword [ebp - 0x454]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40ea20
add dword [ebp - 0x484], 1
jmp 0x40e4e8
mov eax, 0x4b9
call fcn.00406da0
mov eax, dword [ebp - 0x454]
call fcn.00406fa0
mov dword [esp + 4], str.unexpected_folder__s_was_found_n
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.004077c0
jmp 0x40e4e8