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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x3c], 0
cmp dword [esi + 4], 0xb
je 0x459699
mov dword [esp + 8], 0x184
mov dword [esp + 4], str.src_win_fs_event.c
mov dword [esp], str.req__type__UV_FS_EVENT_REQ
call fcn.0049c730
mov edi, dword [ebx + 0x74]
test edi, edi
je 0x4597c0
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x74], 0
test al, 0x40
jne 0x4596e0
test al, 1
je 0x4596d1
test al, 8
jne 0x4596d1
or eax, 8
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x60]
mov dword [eax + 0x2c], ebx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x20]
test eax, eax
jns 0x4597e1
mov dword [esp], eax
call dword [0x5779ec]
sub esp, 4
mov esi, dword [ebx + 0x78]
mov dword [esp], eax
call fcn.004588d0
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call esi
mov eax, dword [ebx + 0x2c]
mov edx, eax
and edx, 1
test edx, edx
jne 0x4596b6
cmp dword [ebx + 0x70], 0xffffffff
je 0x459890
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x459863
lea eax, [ebx + 0x54]
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x17f
mov eax, dword [ebx + 0x2c]
mov dword [esp + 8], 0x1000
shr eax, 2
and eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x88]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x70]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadDirectoryChangesW]
sub esp, 0x20
test eax, eax
je 0x459820
mov dword [ebx + 0x74], 1
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x185
mov dword [esp + 4], str.src_win_fs_event.c
mov dword [esp], str.handle__req_pending
call fcn.0049c730
jmp 0x4596a4
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x4598c0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [ebx + 0x78]
mov eax, dword [ebx + 0x2c]
mov edx, eax
and edx, 1
jmp 0x459723
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x459884
call esi
movzx eax, ax
or eax, 0x80070000
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x60]
lea edx, [ebx + 0x34]
mov dword [ebx + 0x6c], 0
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4598b1
mov ecx, dword [eax + 0x38]
mov dword [ebx + 0x6c], ecx
mov dword [eax + 0x38], edx
mov eax, dword [esp + 0x60]
mov dword [eax + 0x28], edx
jmp 0x4597b0
mov dword [esp + 8], 0x27
mov dword [esp + 4], str.src_win_fs_event.c
mov dword [esp], str._handle__req_pending
call fcn.0049c730
jmp 0x45973c
call esi
jmp 0x459836
mov dword [esp + 8], 0x26
mov dword [esp + 4], str.src_win_fs_event.c
mov dword [esp], str.handle__dir_handle___INVALID_HANDLE_VALUE
call fcn.0049c730
jmp 0x459731
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x6c], edx
mov dword [eax + 0x28], edx
jmp 0x4597b0
mov ebp, dword [ebx + 0x88]
xor ecx, ecx
jmp 0x459935
mov edx, 1
mov eax, dword [esp + 0x3c]
shl edx, cl
test dl, 0x36
je 0x459b90
mov dword [esp + 4], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp], ebx
call dword [ebx + 0x78]
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004559d0
mov dword [esp], esi
mov dword [esp + 0x3c], 0
call fcn.004559d0
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp]
mov edx, eax
and edx, 1
test ecx, ecx
je 0x459723
test edx, edx
jne 0x4596b6
add ebp, ecx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x45995b
mov dword [esp + 8], 0x199
mov dword [esp + 4], str.src_win_fs_event.c
mov dword [esp], str._filename
call fcn.0049c730
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459b20
mov eax, dword [ebp + 4]
lea edi, [ebp + 0xc]
sub eax, 2
and eax, 0xfffffffd
jne 0x4599b0
mov eax, dword [ebp + 8]
xor esi, esi
shr eax, 1
lea ecx, [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], ecx
call fcn.00479070
mov ecx, dword [ebp + 4]
cmp ecx, 5
jbe 0x4598d0
mov eax, dword [esp + 0x3c]
jmp 0x459902
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov edx, dword [ebp + 8]
shr edx, 1
lea ecx, [eax + edx + 2]
lea eax, [ecx + ecx]
mov dword [esp + 0x28], ecx
mov dword [esp], eax
mov dword [esp + 0x24], eax
call fcn.004559c0
test eax, eax
mov esi, eax
mov ecx, dword [esp + 0x28]
je 0x459c22
lea edi, [ebp + 0xc]
mov dword [esp + 0x14], edi
mov eax, dword [ebp + 8]
shr eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 4], ecx
mov dword [esp + 8], str._s_.s
mov dword [esp], esi
mov dword [esp + 0xc], eax
call dword [sym.imp.msvcrt.dll__snwprintf]
mov eax, dword [esp + 0x24]
xor edx, edx
mov word [esi + eax - 2], dx
mov eax, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [esp + 0x28], eax
call eax
sub esp, 0xc
test eax, eax
mov ecx, eax
je 0x459b80
lea eax, [eax + eax]
mov dword [esp + 0x24], ecx
mov dword [esp], eax
call fcn.004559c0
test eax, eax
je 0x459c22
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp + 0x24], eax
mov dword [esp], esi
mov dword [esp + 8], ecx
call dword [esp + 0x28]
sub esp, 0xc
test eax, eax
je 0x459c09
mov edi, dword [esp + 0x24]
xor ecx, ecx
mov word [edi + eax*2], cx
mov dword [esp], esi
call fcn.004559d0
mov esi, dword [ebx + 0x84]
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
mov edi, eax
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
test eax, eax
mov edx, eax
je 0x459aba
cmp word [esi + eax*2 - 2], 0x5c
je 0x459b18
sub edi, edx
lea ecx, [edi - 1]
add edi, edi
mov dword [esp + 0x2c], edx
mov dword [esp], edi
mov dword [esp + 0x28], ecx
call fcn.004559c0
test eax, eax
mov esi, eax
je 0x459c22
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp], esi
lea eax, [eax + edx*2 + 2]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcsncpy
mov eax, dword [esp + 0x24]
xor edx, edx
mov word [esi + edi - 2], dx
mov edi, esi
mov dword [esp], eax
call fcn.004559d0
mov eax, 0xffffffff
jmp 0x45997e
sub edx, 1
jmp 0x459ab8
mov edx, dword [ebx + 0x7c]
mov esi, dword [ebp + 8]
lea edi, [ebp + 0xc]
test edx, edx
je 0x459bc3
mov dword [esp], edx
shr esi, 1
mov dword [esp + 0x24], edx
call sub.msvcrt.dll_wcslen
cmp eax, esi
mov edx, dword [esp + 0x24]
jne 0x459bc0
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x459bc0
mov esi, dword [ebx + 0x84]
test esi, esi
jne 0x459969
mov edi, dword [ebx + 0x7c]
mov eax, 0xffffffff
jmp 0x45997e
mov dword [esp], esi
call fcn.004559d0
jmp 0x459977
and edx, 8
je 0x459902
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [ebx + 0x78]
jmp 0x45999e
mov esi, dword [ebp + 8]
mov edx, dword [ebx + 0x80]
test edx, edx
je 0x45991a
mov dword [esp], edx
shr esi, 1
mov dword [esp + 0x24], edx
call sub.msvcrt.dll_wcslen
cmp eax, esi
jne 0x45991a
mov edx, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x459b5c
jmp 0x45991a
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004559d0
mov dword [esp], esi
call fcn.004559d0
jmp 0x459977
mov dword [esp + 4], 0x545de8
mov dword [esp], 0xe
call fcn.00458810
lea esi, [esi]
lea edi, [edi]