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

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x8c
mov edi, dword [edi]
mov dword [ebp - 0x54], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x42000080
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0x80000000
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea edx, [eax - 1]
mov esi, eax
sub esp, 0x1c
xor eax, eax
cmp edx, 0xfffffffd
jbe 0x405298
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 4
lea eax, [ebp - 0x48]
mov dword [esp + 0xc], 0x18
mov dword [esp + 8], eax
mov dword [esp + 4], 0x12
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
sub esp, 0x10
test eax, eax
je 0x405420
mov dword [esp], 0x50
call fcn.0054fb80
movdqu xmm0, xmmword [ebp - 0x48]
mov edx, dword [ebp - 0x34]
mov dword [eax], esi
mov esi, eax
movups xmmword [eax + 8], xmm0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x28]
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 0x30], eax
test edi, edi
je 0x405b4b
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
lea edi, [eax + eax]
mov esi, eax
mov edx, edi
sar edx, 1
cmp edi, 0xe
ja 0x405468
mov eax, dword [ebp - 0x30]
cmp edx, 1
jne 0x405760
mov ecx, dword [ebp - 0x54]
movzx ecx, word [ecx]
mov word [eax], cx
xor ecx, ecx
mov dword [ebp - 0x2c], edx
mov word [eax + esi*2], cx
mov dword [esp + 4], edi
mov dword [esp + 8], 0xc70f6907
mov dword [esp], eax
call fcn.00548550
mov esi, dword [ebx + 0x18]
xor edx, edx
mov dword [ebp - 0x4c], eax
div esi
mov dword [ebp - 0x50], esi
lea eax, [edx*4]
mov esi, edx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx + 0x14]
mov edi, dword [eax + edx*4]
test edi, edi
je 0x4054c3
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x64], ebx
mov eax, dword [edi]
test edx, edx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], edx
mov ecx, dword [eax + 0x20]
sete byte [ebp - 0x68]
jmp 0x4053c0
mov ebx, dword [eax]
test ebx, ebx
je 0x4054c0
mov ecx, dword [ebx + 0x20]
mov edi, eax
xor edx, edx
mov eax, ecx
div dword [ebp - 0x50]
cmp esi, edx
jne 0x4054c0
mov eax, ebx
cmp dword [ebp - 0x4c], ecx
jne 0x4053a0
mov edx, dword [ebp - 0x58]
cmp edx, dword [eax + 8]
jne 0x4053a0
mov edx, dword [eax + 4]
mov ecx, dword [ebp - 0x60]
cmp edx, ecx
je 0x405670
cmp byte [ebp - 0x68], 0
jne 0x405670
test edx, edx
setne bl
test ecx, ecx
setne cl
cmp bl, cl
jne 0x4053a0
mov ebx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x70], edi
lea esi, [esi]
movzx edi, word [edx]
cmp word [ecx], di
jne 0x4053a0
add ecx, 2
add edx, 2
sub ebx, 1
jne 0x405400
mov edi, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x64]
jmp 0x405673
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test eax, eax
je 0x405440
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 4
mov dword [esp], 2
call dword [0x55efb0]
mov dword [esp + 4], 0x5612c1
mov dword [esp], eax
call fcn.004038b0
xor eax, eax
jmp 0x405432
cmp edi, 0x7ffffffe
ja 0x405b57
cmp edx, 0x3fffffff
je 0x405ac0
lea eax, [edi + 2]
mov dword [ebp - 0x4c], edx
mov dword [esp], eax
call fcn.0054fb80
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x4c], edx
mov dword [esp + 8], edi
mov edx, dword [ebp - 0x54]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
jmp 0x405340
mov ebx, dword [ebp - 0x64]
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0x28]
mov eax, dword [ecx]
mov dword [esp + 4], 4
mov dword [esp], 0x24
call dword [eax + 8]
mov dword [eax], 0
mov edi, eax
lea eax, [eax + 0xc]
sub esp, 8
mov dword [edi + 4], eax
mov edx, dword [ebp - 0x30]
cmp edx, esi
je 0x405a0e
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 4], edx
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x28]
mov dword [edi + 8], ecx
xor edx, edx
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x28], dx
mov dword [edi + 0x1c], eax
mov dword [esp + 8], 1
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.004e6c20
mov dword [ebp - 0x58], edx
sub esp, 0xc
test al, al
jne 0x4058e0
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x6c]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x50]
add ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x4059e8
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [ecx]
mov dword [eax], edi
mov eax, dword [ebp - 0x30]
lea esi, [ebp - 0x28]
add dword [ebx + 0x20], 1
cmp eax, esi
je 0x405593
mov edx, dword [ebp - 0x28]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.0054fb40
mov esi, dword [ebx + 8]
mov dword [esp + 0xc], 1
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
sub esp, 0x10
cmp esi, eax
je 0x4055da
mov ecx, str.attach_handle_to_iocp
mov edx, 0x17e
mov eax, 0x5614bc
mov dword [esp], 0x5610c1
call fcn.00467dc0
int3
mov esi, dword [ebp - 0x5c]
mov eax, 3
mov edx, 1
mov dword [ebp - 0x30], 0xc0001
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x20]
mov dword [ebp - 0x28], edx
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x34]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x30]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x18
mov dword [esp + 0xc], 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0x90240
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
sub esp, 0x20
test eax, eax
je 0x405720
mov ecx, str.watch_directory
mov edx, 0x11c
mov eax, 0x5614bc
mov dword [esp], 0x5610c1
call fcn.00467dc0
int3
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 4
mov ebx, dword [ebp - 0x64]
mov esi, dword [edi]
test esi, esi
je 0x4054c3
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x60], edx
je 0x40569b
mov eax, dword [ebp - 0x28]
lea eax, [eax + eax + 2]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.0054fb40
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
xor edx, dword [eax + 8]
xor ecx, dword [eax + 0xc]
or edx, ecx
je 0x405840
mov edx, dword [ebp - 0x54]
mov dword [esp + 0xc], edx
mov eax, dword [eax]
mov dword [esp], str.note:_Directory_handle__llx:__ls:_Directory_identity_changed_n
mov dword [esp + 4], eax
sar eax, 0x1f
mov dword [esp + 8], eax
call fcn.00439d90
mov dword [esp + 4], 0
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CancelIoEx]
sub esp, 8
test eax, eax
je 0x405a60
mov edx, dword [ebx + 0x34]
mov edi, dword [ebx + 0x38]
cmp edx, edi
je 0x40576d
mov eax, dword [esi + 0x1c]
add edx, 4
mov dword [edx - 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x34], edx
mov dword [esi + 0x1c], eax
jmp 0x405593
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
xor eax, eax
cmp edx, 0x3e5
jne 0x405286
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
mov dword [esp], str.note:_Watching_directory_with_handle__llx:__ls_n
mov dword [esp + 4], eax
sar eax, 0x1f
mov dword [esp + 8], eax
call fcn.00439d90
jmp 0x40565b
test edx, edx
je 0x405340
jmp 0x405497
mov ecx, dword [ebx + 0x30]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x60], eax
sar eax, 2
cmp eax, 0x1fffffff
je 0x405b63
cmp edx, ecx
je 0x405ac5
lea ecx, [eax + eax]
cmp ecx, eax
jb 0x405b23
test ecx, ecx
jne 0x405b3c
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
mov dword [ecx], eax
mov dword [esi + 0x1c], 0
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], ebx
sub edx, ecx
add edx, eax
lea esi, [esi]
mov ebx, dword [ecx]
add eax, 4
add ecx, 4
mov dword [eax - 4], ebx
cmp eax, edx
jne 0x4057d0
mov ebx, dword [ebp - 0x60]
add eax, 4
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x405802
mov edx, edi
mov dword [ebp - 0x4c], eax
sub edx, ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0054fb40
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov edi, dword [esi + 0x1c]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x58]
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x1c], eax
test edi, edi
je 0x405593
mov ecx, edi
call fcn.00466aa0
mov dword [esp + 4], 0x50
mov dword [esp], edi
call fcn.0054fb40
jmp 0x405593
mov ecx, dword [ebp - 0x5c]
lea edx, [eax + 0x10]
mov dword [ebp - 0x4c], edx
lea edi, [ecx + 0x10]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
xor edx, dword [eax + 0x10]
xor ecx, dword [eax + 0x14]
or edx, ecx
jne 0x4056b5
mov ecx, dword [ebp - 0x4c]
mov edx, dword [edi + 8]
xor edx, dword [ecx + 8]
mov ecx, dword [edi + 0xc]
mov edi, dword [ebp - 0x4c]
xor ecx, dword [edi + 0xc]
or edx, ecx
jne 0x4056b5
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
lea edx, [eax - 1]
cmp edx, 0xfffffffd
jbe 0x4058a8
lea esi, cs:[esi]
nop
mov dword [esp + 4], 0x50
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.0054fb40
jmp 0x40565b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test eax, eax
jne 0x405890
mov dword [esp], 2
call dword [0x55efb0]
mov dword [esp + 4], 0x5612c1
mov dword [esp], eax
call fcn.004038b0
jmp 0x405890
cmp dword [ebp - 0x58], 1
je 0x405b2a
mov ecx, dword [ebx + 0x10]
lea esi, [edx*4]
mov eax, dword [ecx]
mov dword [esp + 4], 4
mov dword [esp], esi
call dword [eax + 8]
sub esp, 8
mov dword [ebp - 0x50], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004a0ad0
lea edx, [ebx + 0x2c]
mov esi, dword [ebx + 0x1c]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x1c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], eax
test esi, esi
je 0x405996
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], edx
jmp 0x405954
mov edx, dword [edi]
mov dword [ecx], edx
mov eax, dword [eax]
mov dword [eax], ecx
test esi, esi
je 0x405990
mov ecx, esi
xor edx, edx
mov esi, dword [esi]
mov eax, dword [ecx + 0x20]
div dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
lea eax, [eax + edx*4]
mov edi, dword [eax]
test edi, edi
jne 0x405948
mov edi, dword [ebx + 0x1c]
mov dword [ecx], edi
mov edi, dword [ebp - 0x64]
mov dword [ebx + 0x1c], ecx
mov dword [eax], edi
mov eax, dword [ecx]
test eax, eax
je 0x405988
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x60]
mov dword [eax + edi*4], ecx
mov dword [ebp - 0x60], edx
jmp 0x405950
mov edi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
cmp ecx, edx
je 0x4059bf
mov esi, dword [ebx + 0x10]
shl eax, 2
mov edx, dword [esi]
mov dword [esp], ecx
mov ecx, esi
mov dword [esp + 8], 4
mov dword [esp + 4], eax
call dword [edx + 0xc]
sub esp, 0xc
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x58]
xor edx, edx
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x18], esi
div esi
lea eax, [edx*4]
mov dword [ebp - 0x6c], eax
jmp 0x405552
mov eax, dword [ebx + 0x1c]
mov dword [edi], eax
mov dword [ebx + 0x1c], edi
mov eax, dword [edi]
test eax, eax
je 0x405a04
mov eax, dword [eax + 0x20]
xor edx, edx
div dword [ebx + 0x18]
mov eax, dword [ebp - 0x50]
mov dword [eax + edx*4], edi
lea eax, [ebx + 0x1c]
mov dword [ecx], eax
jmp 0x405572
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + ecx + 2]
cmp edx, 4
jb 0x405a92
mov ecx, dword [ebp - 0x28]
lea esi, [eax + 4]
and esi, 0xfffffffc
mov dword [eax], ecx
mov ecx, dword [ebp + edx - 0x2c]
mov dword [eax + edx - 4], ecx
sub eax, esi
lea ecx, [ebp - 0x28]
add edx, eax
sub ecx, eax
and edx, 0xfffffffc
cmp edx, 4
jb 0x405a56
mov dword [ebp - 0x50], ebx
and edx, 0xfffffffc
xor eax, eax
mov ebx, dword [ecx + eax]
mov dword [esi + eax], ebx
add eax, 4
cmp eax, edx
jb 0x405a46
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x2c]
jmp 0x405505
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x490
je 0x4056f6
mov ecx, str.cancel_watch
mov edx, 0xcb
mov eax, 0x5614bc
mov dword [esp], 0x5610c1
call fcn.00467dc0
int3
test edx, edx
je 0x405505
movzx ecx, byte [ebp - 0x28]
mov byte [eax], cl
mov ecx, dword [ebp - 0x2c]
test dl, 2
je 0x405505
movzx ecx, word [ebp + edx - 0x2a]
mov word [eax + edx - 2], cx
mov ecx, dword [ebp - 0x2c]
jmp 0x405505
call fcn.005523a0
add eax, 1
jb 0x405b23
mov ecx, 0x1fffffff
cmp eax, ecx
cmova eax, ecx
lea ecx, [eax*4]
mov dword [ebp - 0x64], edx
mov dword [esp], ecx
mov dword [ebp - 0x58], ecx
call fcn.0054fb80
mov ecx, dword [ebp - 0x58]
mov edi, dword [ebx + 0x38]
mov edx, eax
mov dword [ebp - 0x50], eax
lea eax, [eax + ecx]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x1c]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x64]
mov dword [esi + 0x1c], 0
cmp edx, eax
jne 0x4057c0
mov eax, dword [ebp - 0x50]
add eax, 4
jmp 0x4057e5
mov ecx, 0x7ffffffc
jmp 0x405adb
lea edx, [ebx + 0x2c]
mov dword [ebx + 0x2c], 0
mov dword [ebp - 0x50], edx
jmp 0x405921
mov eax, 0x1fffffff
cmp ecx, eax
cmova ecx, eax
shl ecx, 2
jmp 0x405adb
mov dword [esp], 0x56143c
call fcn.00552460
mov dword [esp], 0x561314
call fcn.00552550
mov dword [esp], 0x56132c
call fcn.00552550
nop
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [esp + 0xa4]
lea eax, [esp + 0x60]
mov dword [esp + 0x58], eax
mov esi, dword [ebx + 4]
mov edi, dword [ebx]
cmp esi, 0xf
ja 0x405d50
cmp esi, 1
jne 0x405d10
movzx eax, byte [edi]
mov byte [esp + 0x60], al
lea eax, [esp + 0x60]
mov dword [esp + 0x5c], esi
mov byte [eax + esi], 0
mov edi, dword [ebx + 0x1c]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
sub edi, dword [ebx + 0x18]
je 0x405d38
cmp edi, 0x7ffffffc
ja 0x406260
mov dword [esp], edi
call fcn.0054fb80
mov edx, dword [ebx + 0x1c]
mov esi, eax
mov eax, dword [ebx + 0x18]
movd xmm0, esi
add edi, esi
punpckldq xmm0, xmm0
sub edx, eax
mov dword [esp + 0x78], edi
movq qword [esp + 0x70], xmm0
cmp edx, 4
jle 0x406230
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x14], edx
call sub.msvcrt.dll_memmove
mov edx, dword [esp + 0x14]
add esi, edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x74], esi
call fcn.00433380
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x38]
call fcn.004728f0
cmp byte [esp + 0x50], 0
je 0x405d90
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xa0]
mov dword [esp], eax
call fcn.00405220
sub esp, 4
mov esi, eax
cmp byte [esp + 0x50], 0
jne 0x405e60
mov eax, esi
test al, al
je 0x405db8
mov edx, dword [ebx]
lea eax, [esp + 0x38]
call fcn.00473340
cmp byte [esp + 0x38], 0
jne 0x405d20
mov eax, dword [esp + 0x3c]
lea edx, [ebp + 0xc]
lea ecx, [esp + 0x44]
mov dword [ebp + 4], edx
cmp eax, ecx
je 0x405fc0
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 0xc], eax
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
mov dword [ebp + 8], esi
mov byte [ebp], 0
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x70]
test eax, eax
je 0x405ce2
mov edx, dword [esp + 0x78]
mov dword [esp], eax
sub edx, eax
mov dword [esp + 4], edx
call fcn.0054fb40
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x60]
cmp edx, eax
je 0x405d01
mov eax, dword [esp + 0x60]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.0054fb40
add esp, 0x8c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
test esi, esi
je 0x405ba9
lea eax, [esp + 0x60]
jmp 0x405d73
mov eax, dword [esp + 0x3c]
mov byte [ebp], 1
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 8], eax
jmp 0x405cc8
mov dword [esp + 0x78], 0
xor edx, edx
xor esi, esi
jmp 0x405c2c
test esi, esi
js 0x406398
mov eax, esi
add eax, 1
js 0x406228
mov dword [esp], eax
call fcn.0054fb80
mov dword [esp + 0x60], esi
mov dword [esp + 0x58], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x58]
jmp 0x405bad
mov ecx, str.watch_directory
mov edx, 0xd5
mov eax, 0x5614bc
mov dword [esp], 0x5610c1
call fcn.00467dc0
int3
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x60]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
cmp edx, ecx
je 0x406010
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov byte [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xa0]
mov edi, dword [eax + 0x40]
mov dword [esp + 0x14], edi
cmp edi, dword [eax + 0x44]
je 0x405e90
lea eax, [edi + 8]
lea ecx, [esp + 0x40]
mov dword [edi], eax
mov edx, dword [esp + 0x38]
cmp edx, ecx
je 0x406080
mov dword [edi], edx
mov eax, dword [esp + 0x40]
mov dword [edi + 8], eax
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov dword [edi + 4], edx
mov eax, dword [esp + 0x50]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0xa0]
add dword [eax + 0x40], 0x1c
jmp 0x405c80
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x40]
mov byte [esp + 0x50], 0
cmp eax, edx
je 0x405c76
mov edx, dword [esp + 0x40]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.0054fb40
jmp 0x405c76
mov ecx, edi
mov edi, dword [eax + 0x3c]
sub ecx, edi
mov eax, ecx
sar eax, 2
imul eax, eax, 0xb6db6db7
cmp eax, 0x4924924
je 0x4063be
cmp dword [esp + 0x14], edi
je 0x406240
lea edx, [eax + eax]
cmp edx, eax
jb 0x4060f0
mov dword [esp + 0x1c], 0x1c
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
test edx, edx
jne 0x406386
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
add eax, ecx
lea ecx, [eax + 8]
mov dword [esp + 0x28], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x40]
cmp edx, ecx
je 0x4062c0
mov dword [eax], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
mov byte [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [eax + 4], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], ecx
mov dword [eax + 0x18], edx
cmp dword [esp + 0x14], edi
je 0x406153
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x18]
mov eax, edi
mov ebp, edi
mov dword [esp + 0xa4], ebx
jmp 0x405f7c
mov dword [edx], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x18]
add edx, 0x1c
add eax, 0x1c
mov dword [edx - 4], ecx
cmp dword [esp + 0x14], eax
je 0x406120
lea esi, [edx + 8]
lea edi, [eax + 8]
mov dword [edx], esi
mov ecx, dword [eax]
cmp ecx, edi
jne 0x405f58
mov ebx, dword [eax + 4]
lea edi, [ebx + 1]
cmp edi, 4
jae 0x4061c0
test edi, edi
je 0x405fb1
movzx ebx, byte [ecx]
mov byte [esi], bl
test edi, 2
jne 0x406374
mov ebx, dword [eax + 4]
mov dword [edx + 4], ebx
jmp 0x405f66
mov esi, dword [esp + 0x40]
lea ebx, [esi + 1]
cmp ebx, 4
jb 0x406050
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
mov ecx, dword [eax + ebx - 4]
mov dword [edx + ebx - 4], ecx
lea ecx, [ebp + 0x10]
and ecx, 0xfffffffc
sub edx, ecx
add ebx, edx
sub eax, edx
and ebx, 0xfffffffc
cmp ebx, 4
jb 0x405cb6
and ebx, 0xfffffffc
xor edx, edx
mov esi, dword [eax + edx]
mov dword [ecx + edx], esi
add edx, 4
cmp edx, ebx
jb 0x405ffa
jmp 0x405cb6
lea ecx, [eax + 1]
lea edi, [esp + 0x40]
lea edx, [esp + 0x60]
cmp ecx, 4
jae 0x4060c0
xor esi, esi
test cl, 2
je 0x406036
movzx esi, word [edx]
mov word [edi], si
mov esi, 2
and ecx, 1
je 0x405de0
movzx edx, byte [edx + esi]
mov byte [edi + esi], dl
jmp 0x405de0
test ebx, ebx
je 0x405cba
movzx ecx, byte [eax]
mov byte [ebp + 0xc], cl
test bl, 2
je 0x405cba
movzx eax, word [eax + ebx - 2]
mov word [edx + ebx - 2], ax
mov esi, dword [esp + 0x40]
jmp 0x405cba
mov edx, dword [esp + 0x3c]
lea esi, [edx + 1]
mov dword [esp + 0x18], esi
cmp esi, 4
jae 0x406268
test esi, esi
je 0x405e38
movzx ecx, byte [esp + 0x40]
and esi, 2
mov byte [edi + 8], cl
je 0x405e38
mov edi, dword [esp + 0x18]
movzx esi, word [esp + edi + 0x3e]
mov word [eax + edi - 2], si
jmp 0x405e38
mov esi, ecx
xor edx, edx
and esi, 0xfffffffc
mov edi, dword [esp + edx + 0x60]
mov dword [esp + edx + 0x40], edi
add edx, 4
cmp edx, esi
jb 0x4060c7
lea edi, [esp + 0x40]
lea esi, [esp + 0x60]
add edi, edx
add edx, esi
jmp 0x406024
mov esi, 0x7ffffff0
mov dword [esp], esi
mov dword [esp + 0x24], ecx
call fcn.0054fb80
mov ecx, dword [esp + 0x24]
add esi, eax
mov dword [esp + 0x18], eax
add eax, 0x1c
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
jmp 0x405ee2
mov eax, dword [esp + 0x14]
mov edi, ebp
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0xa4]
sub eax, 0x1c
sub eax, edi
shr eax, 2
imul eax, eax, 0x36db6db7
and eax, 0x3fffffff
imul eax, eax, 0x1c
lea eax, [esi + eax + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa0]
test edi, edi
je 0x4063a4
mov eax, dword [eax + 0x44]
mov dword [esp], edi
mov dword [esp + 0x14], eax
sub eax, edi
mov dword [esp + 4], eax
call fcn.0054fb40
mov edi, dword [esp + 0xa0]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov dword [edi + 0x3c], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x40], esi
lea esi, [esp + 0x40]
mov dword [edi + 0x44], ecx
cmp eax, esi
je 0x405c80
mov edi, dword [esp + 0x40]
mov dword [esp], eax
lea edx, [edi + 1]
mov dword [esp + 4], edx
call fcn.0054fb40
jmp 0x405c80
mov ebx, dword [ecx]
mov dword [esi], ebx
mov ebx, dword [ecx + edi - 4]
mov dword [esi + edi - 4], ebx
lea ebx, [edx + 0xc]
and ebx, 0xfffffffc
sub esi, ebx
mov dword [esp + 0x1c], ebx
mov ebx, esi
mov esi, ecx
add edi, ebx
sub esi, ebx
and edi, 0xfffffffc
cmp edi, 4
jb 0x405fae
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0xa4]
and edi, 0xfffffffc
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov edx, dword [esi + ecx]
mov eax, dword [esp + 0x1c]
mov dword [eax + ecx], edx
add ecx, 4
cmp ecx, edi
jb 0x406200
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa4], ebx
jmp 0x405fae
call fcn.005523a0
lea esi, [esi]
jne 0x405c2c
mov eax, dword [eax]
mov dword [esi], eax
jmp 0x405c2c
add eax, 1
mov esi, eax
jb 0x4060f0
mov eax, 0x4924924
cmp esi, eax
cmova esi, eax
imul esi, esi, 0x1c
jmp 0x4060f5
call fcn.005523d0
lea esi, [esi]
mov esi, dword [esp + 0x40]
add edi, 0xc
mov dword [edi - 4], esi
mov ecx, dword [esp + 0x18]
and edi, 0xfffffffc
mov esi, dword [esp + ecx + 0x3c]
mov dword [eax + ecx - 4], esi
sub eax, edi
lea esi, [esp + 0x40]
add ecx, eax
sub esi, eax
and ecx, 0xfffffffc
cmp ecx, 4
jb 0x405e38
mov dword [esp + 0x18], edx
and ecx, 0xfffffffc
xor eax, eax
mov edx, dword [esi + eax]
mov dword [edi + eax], edx
add eax, 4
cmp eax, ecx
jb 0x4062a0
mov edx, dword [esp + 0x18]
jmp 0x405e38
mov ecx, dword [esp + 0x24]
lea edx, [ecx + 1]
mov dword [esp + 0x2c], edx
cmp edx, 4
jae 0x406300
test edx, edx
je 0x405f12
movzx ecx, byte [esp + 0x40]
and edx, 2
mov byte [eax + 8], cl
je 0x405f12
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
movzx ecx, word [esp + esi + 0x3e]
mov word [edx + esi - 2], cx
jmp 0x405f12
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + edx + 0x3c]
mov dword [esi + edx - 4], ecx
lea ecx, [eax + 0xc]
lea edx, [esp + 0x40]
and ecx, 0xfffffffc
sub esi, ecx
mov dword [esp + 0x28], ecx
sub edx, esi
mov ecx, esi
mov esi, edx
mov edx, dword [esp + 0x2c]
add edx, ecx
and edx, 0xfffffffc
cmp edx, 4
jb 0x405f12
mov dword [esp + 0xa4], ebx
mov ecx, edx
xor edx, edx
mov dword [esp + 0x2c], eax
and ecx, 0xfffffffc
mov eax, esi
mov esi, dword [eax + edx]
mov ebx, dword [esp + 0x28]
mov dword [ebx + edx], esi
add edx, 4
cmp edx, ecx
jb 0x406353
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0xa4]
jmp 0x405f12
movzx ecx, word [ecx + edi - 2]
mov word [esi + edi - 2], cx
mov ebx, dword [eax + 4]
jmp 0x405fb1
mov eax, 0x4924924
cmp edx, eax
cmova edx, eax
imul esi, edx, 0x1c
jmp 0x4060f5
mov dword [esp], 0x561314
call fcn.00552550
mov edi, dword [esp + 0x18]
mov dword [eax + 0x3c], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + 0x40], edi
mov edi, dword [esp + 0x20]
mov dword [eax + 0x44], edi
jmp 0x405c80
mov dword [esp], 0x56132c
call fcn.00552550
lea esi, [esi]
sub ecx, 4
jmp fcn.004a8410