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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
je 0x459c27
lea eax, [esp + 0x24]
push eax
mov eax, esi
call fcn.0045ab90
add esp, 4
test eax, eax
jne 0x459bee
mov edi, esi
call fcn.0045cd30
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x459c31
mov eax, dword [esi]
test eax, eax
je 0x459bde
cmp dword [esi + 4], edi
je 0x459bde
push eax
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
test eax, eax
je 0x459bde
call dword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [eax]
lea eax, [esi + 8]
test eax, eax
je 0x459c27
mov dword [eax], 0x16
mov dword [eax + 4], ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi*8]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x459c27
lea ebx, [esi + 8]
push edi
mov dword [esp + 0x18], ebx
call fcn.0045be90
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x459d2d
test edi, edi
jle 0x459c7d
mov eax, dword [ebx]
mov edi, dword [esp + 0x24]
call fcn.0045c0b0
add eax, 0x40
dec edi
jne 0x459c72
mov eax, dword [esi + 0x18]
test al, 1
je 0x459d14
push 0x16
call dword [sym.imp.MSVCR100.dll_malloc]
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x459cae
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x459caa
mov dword [eax], 0xe
mov dword [eax + 4], edi
xor eax, eax
jmp 0x459ce5
mov ecx, dword [str.TORRENTZIPPED_XXXXXXXX]
mov dword [eax], ecx
mov edx, dword [0x5548a4]
mov dword [eax + 4], edx
mov ecx, dword [0x5548a8]
mov dword [eax + 8], ecx
mov edx, dword [0x5548ac]
mov dword [eax + 0xc], edx
mov ecx, dword [0x5548b0]
mov dword [eax + 0x10], ecx
mov dx, word [0x5548b4]
mov word [eax + 0x14], dx
mov dword [ebx + 0x10], eax
cmp eax, edi
jne 0x459d09
call fcn.0045bdc0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x16
mov word [ebx + 0x14], cx
jmp 0x459d47
test byte [esi + 0x14], 1
jne 0x459d45
push ebx
call fcn.0045aac0
add esp, 4
cmp eax, 0xffffffff
jne 0x459d45
call fcn.0045bdc0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0045ac20
add esp, 8
mov dword [esp + 0x30], eax
cmp eax, edi
jne 0x459d7a
call fcn.0045bdc0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x1c], edi
cmp dword [esi + 0x34], edi
jb 0x459e65
ja 0x459d92
cmp dword [esi + 0x30], edi
jbe 0x459e65
mov ecx, dword [esp + 0x18]
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x40]
mov ebx, dword [esp + 0x10]
cmp dword [ebx + ecx], 1
je 0x459e42
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov dword [edi], ecx
mov edi, edx
mov ecx, eax
cmp edi, dword [esi + 0x34]
jb 0x459dcd
ja 0x459e1f
cmp ecx, dword [esi + 0x30]
jae 0x459e1f
mov eax, dword [esi + 0x40]
lea edx, [ecx*8]
sub edx, ecx
cmp dword [eax + edx*4], 1
lea eax, [eax + edx*4]
jne 0x459df4
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, ecx
je 0x459e32
mov dword [eax], 0x17
jmp 0x459e2f
mov eax, dword [eax + 8]
test eax, eax
je 0x459dff
mov ecx, eax
jmp 0x459e32
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x459e1f
mov eax, dword [ebx + 4]
cdq
cmp edi, edx
ja 0x459e1f
jb 0x459e14
cmp ecx, eax
jae 0x459e1f
mov edx, dword [ebx]
shl ecx, 6
mov ecx, dword [ecx + edx + 0x1c]
jmp 0x459e32
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, ecx
je 0x459e32
mov dword [eax], 0x12
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x28]
mov dword [eax + 4], ecx
add eax, 8
mov dword [esp + 0x28], eax
xor edi, edi
mov eax, dword [esp + 0x1c]
add dword [esp + 0x10], 0x1c
inc eax
mov dword [esp + 0x1c], eax
cdq
cmp edx, dword [esi + 0x34]
jb 0x459da2
ja 0x459e65
cmp eax, dword [esi + 0x30]
jb 0x459da2
test byte [esi + 0x18], 1
je 0x459e99
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push 0x45ad10
push 8
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_qsort]
add esp, 0x10
test byte [esi + 0x18], 1
je 0x459e99
test byte [esi + 0x14], 1
mov dword [esp + 0x34], 1
je 0x459e9d
mov dword [esp + 0x34], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x38], edi
cmp dword [esp + 0x24], edi
jle 0x45a33b
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edx*8]
mov ecx, dword [esi + 0x40]
lea ebx, [eax*8]
sub ebx, eax
add ebx, ebx
add ebx, ebx
mov ecx, dword [ebx + ecx]
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], ebx
cmp ecx, 2
je 0x459fa2
cmp ecx, 3
je 0x459fa2
cmp dword [esp + 0x34], edi
jne 0x459fa2
mov edx, dword [esi + 0x20]
mov ecx, dword [edx]
shl eax, 6
mov edx, dword [ecx + eax + 0x3c]
push edi
mov dword [esp + 0x44], eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x45a300
mov ecx, dword [esi + 4]
push 1
push edi
push ecx
mov ecx, dword [esp + 0x20]
xor edx, edx
lea esi, [esp + 0x54]
call fcn.0045c0f0
add esp, 0xc
test eax, eax
jne 0x45a21f
mov edx, dword [esp + 0x2c]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
mov edx, dword [edx]
add edx, dword [esp + 0x28]
mov esi, dword [eax]
mov eax, dword [esp + 0x40]
add esi, eax
test byte [esp + 0x4c], 8
mov ecx, 0x10
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], edx
mov esi, edx
je 0x45a0d0
mov ecx, dword [ebx + 0x20]
mov ecx, dword [ecx]
add eax, ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x5c], ecx
mov ecx, 0xfff7
and word [esp + 0x4c], cx
mov dword [esp + 0x60], eax
mov eax, ecx
and word [edx + 4], ax
jmp 0x45a0d0
push edi
xor eax, eax
xor ecx, ecx
push 1
xor edx, edx
push esi
mov dword [esp + 0x54], 0x140000
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov word [esp + 0x74], dx
mov dword [esp + 0x78], edi
mov word [esp + 0x7c], ax
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], ecx
mov word [esp + 0x88], ax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
call sym.FruitNinja.exe_zip_get_archive_flag
add esp, 0xc
test eax, eax
je 0x45a017
lea esi, [esp + 0x48]
call fcn.0045c650
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx]
add edi, dword [esp + 0x28]
mov ecx, 0x10
lea esi, [esp + 0x48]
mov dword [esp + 0x10], edi
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x40]
cmp dword [ebx + edx + 8], 0
lea eax, [ebx + edx]
jne 0x45a0ca
cmp dword [eax], 3
jne 0x45a07e
push 0x5548b8
call dword [sym.imp.MSVCR100.dll__strdup]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x68], eax
mov eax, 1
mov word [esp + 0x6c], ax
mov eax, dword [esp + 0x14]
mov ecx, 1
mov dword [eax + 0x1c], 0x5548b8
add esp, 4
mov word [eax + 0x20], cx
jmp 0x45a0cc
mov esi, dword [esp + 0x1c]
mov edi, ecx
mov edx, dword [edi + 0x20]
mov eax, dword [edx]
shl esi, 6
mov ecx, dword [eax + esi + 0x1c]
push ecx
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 4
mov dword [esp + 0x64], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45a0a1
sub eax, edx
mov edx, dword [edi + 0x20]
mov cx, ax
mov eax, dword [edx]
mov edx, dword [eax + esi + 0x1c]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x1c], edx
mov word [esp + 0x68], cx
mov word [eax + 0x20], cx
mov ebx, edi
jmp 0x45a0cc
mov ebx, ecx
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x40]
mov edi, dword [esp + 0x44]
cmp dword [edi + eax + 8], 0
je 0x45a12c
mov ecx, dword [esp + 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebx + 0x40]
mov eax, dword [edi + edx + 8]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
je 0x45a21f
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45a110
mov ecx, dword [ebx + 0x40]
sub eax, edx
mov edx, dword [edi + ecx + 8]
mov dword [esi + 0x1c], edx
mov word [esp + 0x68], ax
mov word [esi + 0x20], ax
mov eax, dword [ebx + 0x40]
cmp dword [edi + eax + 0x10], 0xffffffff
lea edx, [edi + eax]
je 0x45a18e
mov ecx, dword [esp + 0x6c]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebx + 0x40]
lea eax, [edi + edx]
mov dword [esp + 0x48], eax
mov eax, dword [eax + 0x10]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [esp + 0x6c], eax
test eax, eax
je 0x45a21f
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
push edx
push ecx
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebx + 0x40]
mov ax, word [edx + edi + 0x10]
add esp, 0xc
add edx, edi
mov word [esp + 0x70], ax
push 0
push 1
push ebx
call sym.FruitNinja.exe_zip_get_archive_flag
add esp, 0xc
test eax, eax
jne 0x45a1b7
cmp dword [edx + 0x18], 0xffffffff
je 0x45a1b7
mov ecx, dword [edx + 0x14]
mov dword [esi + 0x2c], ecx
mov edx, dword [ebx + 0x40]
mov ax, word [edi + edx + 0x18]
mov word [esi + 0x30], ax
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.MSVCR100.dll_ftell]
mov dword [esi + 0x3c], eax
mov edx, dword [ebx + 0x40]
mov eax, dword [edi + edx]
lea ecx, [edi + edx]
add esp, 4
cmp eax, 2
je 0x45a22c
cmp eax, 3
je 0x45a22c
cmp dword [esp + 0x34], 0
jne 0x45a22c
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
push edi
push 1
lea ebx, [esp + 0x50]
call fcn.0045c730
add esp, 8
test eax, eax
js 0x45a21f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x14]
push ecx
mov ebx, edi
mov ecx, esi
call fcn.0045a6f0
add esp, 4
test eax, eax
jns 0x45a2b1
mov dword [esp + 0xc], 1
jmp 0x45a338
xor edi, edi
cmp eax, 2
je 0x45a25b
cmp eax, 3
je 0x45a25b
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
push 0x10
cdq
push edx
push eax
push ebx
push ebx
call sym.FruitNinja.exe_zip_source_zip
mov edi, eax
add esp, 0x24
test edi, edi
je 0x45a21f
mov ecx, edi
jmp 0x45a25e
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x20]
push ecx
push ebx
lea ecx, [esp + 0x50]
call fcn.0045a4a0
add esp, 8
test eax, eax
js 0x45a323
test edi, edi
je 0x45a285
push edi
call sym.FruitNinja.exe_zip_source_free
add esp, 4
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dx, word [esp + 0x4e]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x60]
mov word [esi + 6], dx
mov edx, dword [esp + 0x58]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x64]
mov esi, dword [sym.imp.MSVCR100.dll_free]
push eax
xor edi, edi
call esi
mov ecx, dword [esp + 0x70]
add esp, 4
push ecx
mov dword [esp + 0x68], edi
call esi
mov edx, dword [esp + 0x78]
add esp, 4
push edx
mov dword [esp + 0x70], edi
call esi
mov eax, dword [esp + 0x3c]
add dword [esp + 0x2c], 0x40
mov esi, dword [ebp + 8]
inc eax
add esp, 4
mov dword [esp + 0x74], edi
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x24]
jl 0x459eb3
jmp 0x45a33b
call dword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
cmp ecx, edi
je 0x45a319
mov dword [ecx], 4
mov dword [ecx + 4], eax
mov dword [esp + 0xc], 1
jmp 0x45a33b
mov dword [esp + 0xc], 1
test edi, edi
je 0x45a338
push edi
call sym.FruitNinja.exe_zip_source_free
add esp, 4
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCR100.dll_free]
push eax
call edi
add esp, 4
cmp dword [esp + 0xc], 0
jne 0x45a36d
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.0045a9b0
test eax, eax
jns 0x45a36d
mov dword [esp + 0xc], 1
mov ebx, dword [esp + 0x2c]
mov dword [ebx + 4], 0
call fcn.0045bdc0
cmp dword [esp + 0xc], 0
je 0x45a3ce
mov ecx, dword [esp + 0x64]
push ecx
call edi
mov edx, dword [esp + 0x70]
add esp, 4
push edx
call edi
mov eax, dword [esp + 0x78]
add esp, 4
push eax
call edi
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
push esi
call edi
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.MSVCR100.dll_fclose]
push edx
call ebx
add esp, 4
test eax, eax
je 0x45a3fd
call dword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
test ecx, ecx
je 0x45a3b0
mov dword [ecx], 3
mov dword [ecx + 4], eax
jmp 0x45a3b0
mov eax, dword [esi + 4]
test eax, eax
je 0x45a419
push eax
call ebx
add esp, 4
mov dword [esi + 4], 0
mov dword [esp + 0x3c], 1
mov eax, dword [esi]
mov ebx, dword [esp + 0x30]
push eax
push ebx
call dword [sym.imp.MSVCR100.dll_rename]
add esp, 8
test eax, eax
je 0x45a480
call dword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
test ecx, ecx
je 0x45a447
mov dword [ecx], 2
mov dword [ecx + 4], eax
push ebx
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
push ebx
call edi
add esp, 4
cmp dword [esp + 0x3c], 0
je 0x45a3c4
mov ecx, dword [esi]
push 0x553b90
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [esi + 4], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, esi
call fcn.0045cd30
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret