Function at 0x4d9900
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xec
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x104]
lea eax, [esp + 0x48]
call fcn.004d19d0
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10c]
mov dword [esp], eax
call fcn.004dcf30
test eax, eax
je 0x4d9a40
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d99f5
mov eax, dword [esp + 0x10c]
mov dword [esp + 4], str.zstd:__s_is_a_directory____ignored__n
mov ebx, 1
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
jmp 0x4d99fa
test byte [esp + 0xb6], 0x80
je 0x4d9f4d
mov eax, dword [esp + 0x10c]
mov dword [esp], eax
call sub.msvcrt.dll_remove
test eax, eax
je 0x4d9bb2
mov ecx, dword [0x4f7268]
test ecx, ecx
jle 0x4d99f5
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 4], str.zstd:__s:__s__n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov ebx, 1
mov dword [esp], ebp
call fcn.0048daf0
mov dword [esp], eax
mov esi, eax
call fcn.00408120
test eax, eax
jne 0x4d9f6d
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.004f1ae0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004f1ae0
add esp, 0xec
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x10c]
mov eax, dword [esp + 0x104]
call fcn.004cfce0
test eax, eax
mov dword [esp + 0x38], eax
je 0x4d99f5
mov eax, dword [esp + 0x34]
test ebx, ebx
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x70], eax
je 0x4d9bc0
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x100]
call fcn.004d3df0
mov ebx, eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
test eax, eax
jne 0x4d99b4
mov eax, dword [esp + 0x104]
mov esi, dword [eax + 0x54]
test esi, esi
je 0x4d99fa
test ebx, ebx
jne 0x4d99fa
mov esi, dword [esp + 0x10c]
mov edi, 0x4ff04d
mov ecx, 0xa
repe cmpsb byte [esi], byte es:[edi]
je 0x4d9bb2
mov ebx, dword [0x51a068]
test ebx, ebx
je 0x4d9b5a
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.msvcrt.dll_signal
mov eax, dword [esp + 0x10c]
lea ebx, [esp + 0xb0]
mov dword [0x51a068], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004dcd20
test eax, eax
jne 0x4d9e46
cmp dword [0x4f7268], 1
jle 0x4d9bb2
mov eax, dword [esp + 0x10c]
mov dword [esp + 4], str.zstd:_Failed_to_stat__s_while_trying_to_remove_it_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
xor ebx, ebx
jmp 0x4d99fa
mov eax, dword [esp + 0x104]
mov eax, dword [eax + 0x4c]
test eax, eax
mov dword [esp + 0x3c], eax
jne 0x4d9a8b
mov esi, dword [esp + 0x10c]
mov edi, 0x4ff04d
mov ecx, 0xa
repe cmpsb byte [esi], byte es:[edi]
je 0x4d9c04
mov esi, dword [esp + 0x108]
mov edi, 0x50014e
mov ecx, 0xb
repe cmpsb byte [esi], byte es:[edi]
jne 0x4d9ecb
mov edx, 0x1b6
mov ecx, dword [esp + 0x108]
mov eax, dword [esp + 0x100]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x104]
mov dword [esp], ecx
mov ecx, dword [esp + 0x10c]
add eax, 4
call fcn.004d4f40
test eax, eax
mov esi, eax
je 0x4d9e8d
mov eax, dword [esp + 0x108]
mov dword [esp], eax
call fcn.004dcd50
test eax, eax
jne 0x4d9ea6
mov dword [0x51a068], 0
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x100]
call fcn.004d3df0
mov edx, dword [0x51a068]
mov ebx, eax
test edx, edx
je 0x4d9ceb
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.msvcrt.dll_signal
mov dword [esp], esi
mov dword [0x51a068], 0
call sub.msvcrt.dll_fclose
test eax, eax
je 0x4d9d80
mov eax, dword [0x4f7268]
test eax, eax
jle 0x4d9d41
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 4], str.zstd:__s:__s__n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov eax, dword [esp + 0x3c]
mov ebx, 1
test eax, eax
jne 0x4d9d92
mov esi, dword [esp + 0x108]
mov edi, 0x50014e
mov ecx, 0xb
repe cmpsb byte [esi], byte es:[edi]
jne 0x4d9db2
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
test eax, eax
jne 0x4d99b4
jmp 0x4d99fa
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4d9d96
test ebx, ebx
je 0x4d9af9
jmp 0x4d9d4e
mov ebx, dword [esp + 0x3c]
lea eax, [esp + 0x80]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x108]
mov dword [esp], eax
call fcn.004dce20
jmp 0x4d9d88
mov eax, dword [esp + 0x108]
lea esi, [esp + 0xb0]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004dcd20
test eax, eax
jne 0x4d9e01
cmp dword [0x4f7268], 1
jle 0x4d9d63
mov eax, dword [esp + 0x108]
mov dword [esp + 4], str.zstd:_Failed_to_stat__s_while_trying_to_remove_it_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
jmp 0x4d9d63
mov dword [esp], esi
call fcn.004dcd90
test eax, eax
jne 0x4d9f12
cmp dword [0x4f7268], 1
jle 0x4d9d63
mov eax, dword [esp + 0x108]
mov dword [esp + 4], str.zstd:_Refusing_to_remove_non_regular_file__s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
jmp 0x4d9d63
mov dword [esp], ebx
call fcn.004dcd90
test eax, eax
jne 0x4d998f
cmp dword [0x4f7268], 1
jle 0x4d9bb2
mov eax, dword [esp + 0x10c]
mov dword [esp + 4], str.zstd:_Refusing_to_remove_non_regular_file__s_n
xor ebx, ebx
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
jmp 0x4d99fa
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
test eax, eax
je 0x4d99f5
jmp 0x4d99b4
mov eax, dword [esp + 0x108]
mov dword [esp + 4], 0x4cfeb0
mov dword [esp], 2
mov dword [0x51a068], eax
call sub.msvcrt.dll_signal
jmp 0x4d9c5f
mov eax, dword [esp + 0x10c]
lea ebx, [esp + 0x80]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004dcd20
test eax, eax
je 0x4d9c04
mov dword [esp], ebx
call fcn.004dcd90
test eax, eax
je 0x4d9c04
movzx edx, word [esp + 0x86]
mov dword [esp + 0x3c], 1
jmp 0x4d9c09
test byte [esp + 0xb6], 0x80
je 0x4d9f30
mov eax, dword [esp + 0x108]
mov dword [esp], eax
call sub.msvcrt.dll_remove
jmp 0x4d9d63
mov eax, dword [esp + 0x108]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004dcdb0
jmp 0x4d9f1c
mov eax, dword [esp + 0x10c]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004dcdb0
jmp 0x4d999d
mov eax, dword [0x4f7268]
cmp eax, 4
jg 0x4da04b
test eax, eax
jle 0x4d9fc8
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.zstd:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
cmp dword [0x4f7268], 4
jle 0x4d9fc8
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], 0x7ff
mov dword [esp + 8], 0x4ff030
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
cmp dword [0x4f7268], 0
jle 0x4da03f
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0xb
mov dword [esp + 4], str.error__i_:
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
cmp dword [0x4f7268], 0
jle 0x4da03f
mov dword [esp], esi
call fcn.00408130
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4ff30d
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
cmp dword [0x4f7268], 0
jle 0x4da03f
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4ff164
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
mov dword [esp], 0xb
call sub.msvcrt.dll_exit
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], str.ZSTD_freeDStream_ress.dctx_
mov dword [esp + 4], 0x4ff4b6
add eax, 0x40
mov dword [esp], eax
call fcn.004cfcb0
cmp dword [0x4f7268], 0
jg 0x4d9f7f
jmp 0x4d9f97