Function at 0x4218fd
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c0
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x5bc], eax
mov eax, dword [esp + 0x5c8]
push ebx
push ebp
mov ebp, dword [esp + 0x5cc]
mov ebx, ecx
push str.CDeviceX::HandleBDPlus
mov dword [esp + 0x14], eax
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBegin]
xor ecx, ecx
mov byte [esp + 0xb], cl
cmp byte [ebx + 0x7f], cl
jne 0x421944
mov al, 1
jmp 0x42203c
test dword [ebx + 0x1c8], 0x100
jne 0x421974
push 0x72ff23d1
push 0xa8491f19
push 0x57b2e4db
call fcn.004017ae
push eax
push 2
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x18
jmp 0x42193d
push esi
push 0x104
lea eax, [esp + 0x3c4]
mov dword [esp + 0x14], ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x3c0]
push 0x5c
push eax
call fcn.004b3fe0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x421a5d
push 0x92a4e05d
push 0x4812dc82
push 0xb7e927ae
call fcn.004017db
mov ecx, eax
lea edx, [esi + 2]
add esp, 0xc
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4219c6
lea eax, [esp + 0x3c0]
push eax
call fcn.00419cdb
pop ecx
test al, al
je 0x421a5d
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x3c4]
push eax
lea eax, [ebx + 0x21c]
push eax
call fcn.00420228
mov esi, eax
add esp, 0xc
test esi, esi
je 0x421a5d
push dword [esp + 0x10]
mov ecx, ebx
push esi
call fcn.0042b4d1
push esi
mov byte [esp + 0x13], al
call fcn.0040746c
cmp byte [esp + 0x13], 0
pop ecx
je 0x421a5d
lea eax, [esp + 0x3c0]
push eax
push 0x137a5ad4
push 0xc9cc6604
push 0x36379d1a
call fcn.004017db
add esp, 0xc
push eax
push 5
push dword [ebx + 0x60]
call fcn.0041a14c
mov al, byte [esp + 0x1f]
add esp, 0x10
jmp 0x42203b
mov ecx, dword [0x52181c]
lea eax, [esp + 0x3c0]
push edi
push eax
call fcn.00408b00
push 0x3c14af6e
mov edi, eax
push 0xe6a293b1
push 0x195968bf
mov dword [esp + 0x28], edi
call fcn.004017db
mov edx, edi
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x421a92
lea eax, [esp + 0x3c4]
push eax
call fcn.00419cdb
pop ecx
test al, al
je 0x421b5f
call fcn.004051f5
test eax, eax
je 0x421b32
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c8]
push eax
lea eax, [ebx + 0x21c]
push eax
call fcn.00420228
mov esi, eax
add esp, 0xc
test esi, esi
je 0x421b5f
push dword [esp + 0x14]
mov ecx, ebx
push esi
call fcn.0042b4d1
push esi
mov byte [esp + 0x17], al
call fcn.0040746c
cmp byte [esp + 0x17], 0
pop ecx
je 0x421b5f
lea eax, [esp + 0x3c4]
push eax
push 0x21dcd394
push 0xfb6aef44
push 0x491143c
call fcn.004017db
add esp, 0xc
push eax
push 5
push dword [ebx + 0x60]
call fcn.0041a14c
add esp, 0x10
jmp 0x422036
lea eax, [esp + 0x3c4]
push eax
push 0x3113d341
push 0xeba5ef8d
push 0x145e14e5
call fcn.004017ae
add esp, 0xc
push eax
push 2
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x10
test byte [ebp + 0xa], 1
jne 0x421bfb
push dword [esp + 0x18]
lea eax, [esp + 0x3b8]
mov ecx, ebx
push ebp
push eax
call fcn.0042115c
test al, al
jne 0x421ba5
push 0x7d5f039
push 0xdd63ccf9
push 0x229837b7
call fcn.004017ae
push eax
push 2
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x18
jmp 0x421bfb
push 0
lea eax, [esp + 0x3b8]
push 0
push eax
call fcn.00423e10
add esp, 0xc
push eax
push 0x81cba5b3
push 0x5b7d996c
push 0xa48665cc
call fcn.004017ae
add esp, 0xc
push eax
push 1
push dword [ebx + 0x60]
call fcn.0041a053
lea edi, [ebp + 0x8c]
add esp, 0x10
or dword [ebp + 8], 0x10000
lea esi, [esp + 0x3b4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
push edi
lea eax, [ebp + 0x8c]
push 0x10
push eax
call fcn.00419f23
push 0xb1ee99d7
push 0x6b58a505
push 0x94a359af
lea esi, [edi + 0x40]
call fcn.004017db
mov edx, esi
add esp, 0x18
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x421c28
lea eax, [esp + 0x3c4]
push eax
call fcn.00419cdb
pop ecx
test al, al
je 0x421ca2
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c8]
push eax
call fcn.0041b72e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x421ca2
push dword [esp + 0x14]
mov ecx, ebx
push edi
call fcn.0042b9c4
push edi
mov byte [esp + 0x17], al
call fcn.0040746c
cmp byte [esp + 0x17], 0
pop ecx
je 0x421ca2
lea eax, [esp + 0x3c4]
push eax
push 0x8e29a505
push 0x549f99da
push 0xab646544
jmp 0x421f78
lea eax, [ebx + 0x94]
push eax
push 0xa6b2325b
push 0x7c040e84
push 0x83fff204
call fcn.004017db
add esp, 0xc
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x3d0]
push eax
call fcn.00419cdb
add esp, 0x10
test al, al
je 0x421d35
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c8]
push eax
call fcn.0041b72e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x421d35
push dword [esp + 0x14]
mov ecx, ebx
push edi
call fcn.0042b9c4
push edi
mov byte [esp + 0x17], al
call fcn.0040746c
cmp byte [esp + 0x17], 0
pop ecx
je 0x421d35
lea eax, [esp + 0x3c4]
push eax
push 0x7e62ac7f
push 0xa4d490a0
push 0x5b2f6c52
jmp 0x421f78
push 0xb9867be
push 0xd12e5b6e
push 0x2ed5a78a
call fcn.004017db
add esp, 0xc
sub esi, eax
movzx ecx, word [eax]
mov word [esi + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x421d4e
and dword [esp + 0x164], 0
lea eax, [esp + 0x168]
push 0x24c
push 0
push eax
call fcn.004b6030
add esp, 0xc
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x421e2d
lea eax, [esp + 0x3c4]
push 0x5c
push eax
call fcn.004b3fe0
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x421e26
lea ecx, [esp + 0x190]
mov eax, ecx
sub edx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx], ax
test ax, ax
jne 0x421dbf
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c8]
push eax
call fcn.0041b72e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x421e0f
push dword [esp + 0x14]
mov ecx, ebx
push esi
call fcn.0042b9c4
push esi
mov byte [esp + 0x17], al
call fcn.0040746c
cmp byte [esp + 0x17], 0
pop ecx
jne 0x421f61
lea eax, [esp + 0x164]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x421d9d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.004051f5
test eax, eax
je 0x422017
push 0x143
lea eax, [esp + 0x25]
push 0
push eax
call fcn.004b6030
mov al, byte [ebp + 0x73]
mov byte [esp + 0x2c], 1
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], 0xef
call fcn.004031b9
mov dword [esp + 0x68], eax
lea esi, [ebp + 0x58]
mov eax, dword [ebx + 0x224]
lea edi, [esp + 0x4c]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x1a8]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x1ac]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x21c]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x220]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xac]
push 5
pop ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x30], 0xa5f
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0xb0]
mov dword [esp + 0x64], eax
movzx eax, byte [esp + 0x2e]
push eax
lea eax, [ebp + 0x140]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004b91d0
and dword [esp + 0x30], 0
lea eax, [esp + 0x30]
push eax
movzx eax, byte [esp + 0x3e]
add eax, 0x44
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00430048
add esp, 0x24
cmp eax, 0xc8
jne 0x421f95
mov eax, dword [esp + 0x18]
test eax, eax
je 0x421ff5
cmp dword [eax], 0x12bfbbef
jne 0x421f55
push dword [eax + 8]
add eax, 0x10
mov ecx, ebx
push eax
call fcn.0042b4d1
mov byte [esp + 0x13], al
test al, al
je 0x421f51
push 0xc3525608
push 0x19e46acf
push 0xe61f9611
call fcn.004017db
push eax
push 5
push dword [ebx + 0x60]
call fcn.0041a14c
add esp, 0x18
mov eax, dword [esp + 0x18]
push eax
call fcn.0040746c
pop ecx
jmp 0x422030
lea eax, [esp + 0x3c4]
push eax
push 0x5962bb6
push 0xdf201769
push 0x20dbebbd
call fcn.004017ae
add esp, 0xc
push eax
push 1
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x10
mov al, 1
jmp 0x42203a
cmp eax, 0x1e1
jne 0x421fad
push 0xea1f2aa
push 0xd417ce6a
push 0x2bec3252
jmp 0x422004
cmp eax, 0x1e0
jne 0x421fc5
push 0x5152091f
push 0x8be435d7
push 0x741fc9c5
jmp 0x422004
cmp eax, 0x1e2
jne 0x421fdd
push 0x231a71c8
push 0xf9ac4d0c
push 0x657b170
jmp 0x422004
cmp eax, 0x1e3
jne 0x421ff5
push 0xc8cd42d
push 0xd63ae8e6
push 0x29c1148c
jmp 0x422004
push 0x3a89f388
push 0xe03fcf4c
push 0x1fc43304
call fcn.004017ae
push eax
push 3
push dword [ebx + 0x60]
call fcn.0041a053
add esp, 0x18
mov dword [ebx + 0x74], 0x21
mov al, byte [ebx + 0x26]
mov byte [ebx + 0x78], al
mov al, byte [ebx + 0x30]
mov byte [ebx + 0x79], al
mov al, byte [ebx + 0x31]
mov byte [ebx + 0x7a], al
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov al, byte [esp + 0x13]
pop edi
pop esi
mov ecx, dword [esp + 0x5c4]
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x5c0
ret 8