Function at 0x4cd580
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 0x4cd5b9
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.0053e6a0
mov edi, dword [ebx + 0x74]
test edi, edi
je 0x4cd6e0
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x74], 0
test al, 0x40
jne 0x4cd600
test al, 1
je 0x4cd5f1
test al, 8
jne 0x4cd5f1
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 0x4cd701
mov dword [esp], eax
call dword [0x8630d8]
sub esp, 4
mov esi, dword [ebx + 0x78]
mov dword [esp], eax
call fcn.004cc7f0
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 0x4cd5d6
cmp dword [ebx + 0x70], 0xffffffff
je 0x4cd7b0
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x4cd783
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 0x4cd740
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.0053e6a0
jmp 0x4cd5c4
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x4cd7e0
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 0x4cd643
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
test eax, eax
jle 0x4cd7a4
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 0x4cd7d1
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 0x4cd6d0
mov dword [esp + 8], 0x27
mov dword [esp + 4], str.src_win_fs_event.c
mov dword [esp], str._handle__req_pending
call fcn.0053e6a0
jmp 0x4cd65c
call esi
jmp 0x4cd756
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.0053e6a0
jmp 0x4cd651
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x6c], edx
mov dword [eax + 0x28], edx
jmp 0x4cd6d0
mov ebp, dword [ebx + 0x88]
xor ecx, ecx
jmp 0x4cd855
mov edx, 1
mov eax, dword [esp + 0x3c]
shl edx, cl
test dl, 0x36
je 0x4cdab0
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.004c95f0
mov dword [esp], esi
mov dword [esp + 0x3c], 0
call fcn.004c95f0
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp]
mov edx, eax
and edx, 1
test ecx, ecx
je 0x4cd643
test edx, edx
jne 0x4cd5d6
add ebp, ecx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4cd87b
mov dword [esp + 8], 0x199
mov dword [esp + 4], str.src_win_fs_event.c
mov dword [esp], str._filename
call fcn.0053e6a0
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4cda40
mov eax, dword [ebp + 4]
lea edi, [ebp + 0xc]
sub eax, 2
and eax, 0xfffffffd
jne 0x4cd8d0
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.004ecf90
mov ecx, dword [ebp + 4]
cmp ecx, 5
jbe 0x4cd7f0
mov eax, dword [esp + 0x3c]
jmp 0x4cd822
mov dword [esp], esi
call sub.msvcrt.dll_wcstombs
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.004c95e0
test eax, eax
mov esi, eax
mov ecx, dword [esp + 0x28]
je 0x4cdb42
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__stricmp]
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 0x4cdaa0
lea eax, [eax + eax]
mov dword [esp + 0x24], ecx
mov dword [esp], eax
call fcn.004c95e0
test eax, eax
je 0x4cdb42
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 0x4cdb29
mov edi, dword [esp + 0x24]
xor ecx, ecx
mov word [edi + eax*2], cx
mov dword [esp], esi
call fcn.004c95f0
mov esi, dword [ebx + 0x84]
mov dword [esp], edi
call sub.msvcrt.dll_wcstombs
mov edi, eax
mov dword [esp], esi
call sub.msvcrt.dll_wcstombs
test eax, eax
mov edx, eax
je 0x4cd9da
cmp word [esi + eax*2 - 2], 0x5c
je 0x4cda38
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.004c95e0
test eax, eax
mov esi, eax
je 0x4cdb42
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 fcn.00548250
mov eax, dword [esp + 0x24]
xor edx, edx
mov word [esi + edi - 2], dx
mov edi, esi
mov dword [esp], eax
call fcn.004c95f0
mov eax, 0xffffffff
jmp 0x4cd89e
sub edx, 1
jmp 0x4cd9d8
mov edx, dword [ebx + 0x7c]
mov esi, dword [ebp + 8]
lea edi, [ebp + 0xc]
test edx, edx
je 0x4cdae3
mov dword [esp], edx
shr esi, 1
mov dword [esp + 0x24], edx
call sub.msvcrt.dll_wcstombs
cmp eax, esi
mov edx, dword [esp + 0x24]
jne 0x4cdae0
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll__write]
test eax, eax
jne 0x4cdae0
mov esi, dword [ebx + 0x84]
test esi, esi
jne 0x4cd889
mov edi, dword [ebx + 0x7c]
mov eax, 0xffffffff
jmp 0x4cd89e
mov dword [esp], esi
call fcn.004c95f0
jmp 0x4cd897
and edx, 8
je 0x4cd822
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [ebx + 0x78]
jmp 0x4cd8be
mov esi, dword [ebp + 8]
mov edx, dword [ebx + 0x80]
test edx, edx
je 0x4cd83a
mov dword [esp], edx
shr esi, 1
mov dword [esp + 0x24], edx
call sub.msvcrt.dll_wcstombs
cmp eax, esi
jne 0x4cd83a
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__write]
test eax, eax
je 0x4cda7c
jmp 0x4cd83a
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004c95f0
mov dword [esp], esi
call fcn.004c95f0
jmp 0x4cd897
mov dword [esp + 4], 0x751b04
mov dword [esp], 0xe
call fcn.004cc730
lea esi, [esi]
lea edi, [edi]