Function at 0x4539b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0xdc
mov eax, dword [ebp + 0x10]
mov dword [ecx + 8], 0
mov dword [ecx + 0x14], 0x5f9914
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x1c], 0xffffffff
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov byte [ecx + 0x18], 0
mov dword [ecx + 4], eax
lea eax, [ecx + 8]
mov dword [esp], 0x40000
mov dword [ebp - 0xb0], eax
call sub.msvcrt.dll_malloc
test eax, eax
je 0x454184
mov dword [ebx + 0x20], eax
mov esi, eax
mov dword [esp], 0x10000
call sub.msvcrt.dll_malloc
test eax, eax
je 0x45429e
mov dword [ebx + 0x2c], eax
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
test eax, eax
je 0x454184
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov byte [eax], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00432bc0
mov eax, dword [ebx + 0x2c]
mov esi, dword [sym.imp.USER32.dll_CharToOemW]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov byte [ebx + 0x38], 1
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov byte [ebx + 0x48], 1
mov dword [ebx + 0x78], 0x5f9914
mov dword [ebx + 0x80], 0xffffffff
mov byte [ebx + 0x7c], 0
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov edi, eax
test eax, eax
je 0x454240
mov dword [ebx + 0x84], eax
mov dword [esp], 0x10000
call sub.msvcrt.dll_malloc
test eax, eax
je 0x4542d0
mov dword [ebx + 0x90], eax
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
test eax, eax
je 0x454240
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], eax
mov byte [eax], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00432bc0
mov eax, dword [ebx + 0x90]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x84]
mov dword [esp], eax
call esi
sub esp, 8
mov byte [ebx + 0x98], 0
mov dword [ebx + 0x94], 0x5f9914
mov dword [ebx + 0x9c], 0xffffffff
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov edi, eax
test eax, eax
je 0x4541e2
mov dword [ebx + 0xa0], eax
mov dword [esp], 0x10000
call sub.msvcrt.dll_malloc
test eax, eax
je 0x45433c
mov dword [ebx + 0xac], eax
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
test eax, eax
je 0x4541e2
mov dword [ebx + 0xa4], eax
mov dword [ebx + 0xa8], eax
mov byte [eax], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00432bc0
mov eax, dword [ebx + 0xac]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xa0]
mov dword [esp], eax
call esi
mov eax, dword [ebp + 0x14]
sub esp, 8
mov dword [0x68f700], ebx
mov dword [ebx + 0x400c8], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x40034]
mov dword [esp], eax
call fcn.00433050
call fcn.004332c0
mov dword [esp], eax
call fcn.00436a80
mov ecx, ebx
call fcn.00452770
mov edi, dword [ebx + 4]
mov edx, dword [ebx + 0x40]
mov eax, dword [edi]
mov dword [ebp - 0xbc], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x4001c]
mov eax, dword [eax + 4]
mov byte [ebp - 0x9c], 0
mov dword [ebp - 0xa0], 0x5f9914
mov dword [ebp - 0xb8], ecx
mov ecx, dword [ebx + 0x44]
mov dword [esp], 0x40000
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x98], 0xffffffff
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xac], eax
test eax, eax
je 0x45414a
mov dword [esp], 0x10000
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
call sub.msvcrt.dll_malloc
test eax, eax
je 0x454302
mov dword [esp], 0x40000
mov dword [ebp - 0x88], eax
call sub.msvcrt.dll_malloc
test eax, eax
je 0x45414a
mov edx, dword [ebp - 0xac]
mov byte [eax], 0
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
call fcn.00432bc0
mov eax, dword [ebp - 0x88]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0xc0]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call fcn.00432bc0
mov eax, dword [ebp - 0x88]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xbc]
sub esp, 8
mov eax, dword [ebx]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0xc4]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x88]
mov dword [esp + 0xc], ecx
mov ecx, edi
mov dword [esp + 8], edx
mov edx, dword [eax + 0x40078]
mov dword [esp + 4], edx
movsx eax, byte [eax]
mov dword [esp], eax
mov eax, dword [ebp - 0xb4]
call eax
mov dword [ebp - 0xa0], 0x5f9914
mov esi, eax
sub esp, 0x18
mov eax, dword [ebp - 0x98]
test eax, eax
jns 0x453f40
cmp byte [ebp - 0x9c], 0
je 0x453d94
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wremove]
lea eax, [ebp - 0xa0]
mov dword [esp], eax
call fcn.004339c0
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x90]
je 0x453daa
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, esi
test al, al
je 0x453fc8
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [ebx + 0x88]
cmp eax, esi
je 0x453df4
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov esi, dword [ebx + 0x88]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
cmp byte [esi], 0
lea edi, [esi + eax]
je 0x453e20
movsx eax, byte [edi - 1]
mov dword [esp], 0x5a92ae
mov dword [esp + 4], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x45412d
mov dword [ebx + 0x8c], edi
mov edi, dword [ebx + 0x30]
xor esi, esi
test edi, edi
jg 0x453f2c
lea esi, [esi]
nop
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
cmp eax, 0x4c9180
jne 0x454098
mov eax, dword [ecx + 0x40010]
mov edx, dword [ecx + 0x40014]
cmp byte [ebp - 0xc8], 0
mov dword [ebx + 0x400c0], eax
mov dword [ebx + 0x400c4], edx
mov dword [ebx + 0x400b8], 0
mov dword [ebx + 0x400bc], 0
je 0x453eaa
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jle 0x453eaa
xor esi, esi
lea esi, [esi]
mov edx, dword [ebx + 0x34]
lea eax, [esi + esi*4]
lea eax, [edx + eax*8]
cmp dword [eax], 3
je 0x4540b8
add esi, 1
cmp dword [ebx + 0x30], esi
jg 0x453e90
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
cmp eax, 0x4c9840
jne 0x454120
mov eax, dword [ebx + 0x1c]
test eax, eax
jns 0x453fe0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xa0]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x44f470
mov dword [esp], eax
call fcn.00450900
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
sub esp, 0x10
lea edi, [ebp - 0xa0]
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [eax + 0x38]
sub esp, 8
mov ecx, edi
call fcn.004c7130
add esi, 1
cmp dword [ebx + 0x30], esi
jle 0x453e38
mov edx, dword [ebx + 0x34]
lea eax, [esi + esi*4]
lea eax, [edx + eax*8]
cmp dword [eax], 3
jne 0x453f20
jmp 0x453ed8
mov dword [esp], eax
call sub.msvcrt.dll__close
test eax, eax
je 0x454070
mov eax, dword [0x678a20]
test eax, eax
jne 0x4540a0
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x45436e
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x45436e
mov eax, dword [ebp - 0x90]
mov dword [esp + 4], str.ERROR:_cant_close_file__s
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.004c1a60
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00432f50
mov dword [esp + 4], ebx
mov dword [esp], 0x5a8fcc
call fcn.004c19d0
jmp 0x45405c
mov eax, dword [ebx]
mov dword [eax + 0x40068], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], eax
call sub.msvcrt.dll__close
test eax, eax
je 0x454080
mov eax, dword [0x678a20]
test eax, eax
jne 0x4540a0
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov edi, eax
test eax, eax
je 0x45414a
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x45414a
mov eax, dword [ebx + 0x24]
mov dword [esp + 4], str.ERROR:_cant_close_file__s
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.004c1a60
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00432f50
mov dword [esp + 4], esi
mov dword [esp], 0x5a8fcc
call fcn.004c19d0
mov dword [esp], 2
call sub.msvcrt.dll_exit
lea esi, [esi]
nop
mov dword [ebp - 0x98], 0xffffffff
jmp 0x453d6e
mov dword [ebx + 0x1c], 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call eax
jmp 0x453e57
mov dword [esp + 4], 1
mov dword [esp], 0x6789e0
call dword [sym.imp.msvcrt.dll_longjmp]
lea esi, [esi]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xa0]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x44f470
mov dword [esp], eax
call fcn.00450900
mov edx, dword [ebp - 0x24]
sub esp, 0x10
xor edi, edi
test edx, edx
jle 0x45410f
lea esi, [esi]
nop
lea eax, [ebp - 0xa0]
mov dword [esp + 4], edi
mov ecx, ebx
mov dword [esp], eax
call fcn.00453670
sub esp, 8
add edi, 1
cmp dword [ebp - 0x24], edi
jg 0x4540f0
lea ecx, [ebp - 0xa0]
call fcn.004c7130
jmp 0x453ea2
mov dword [esp], edx
call eax
sub esp, 4
jmp 0x453ebf
mov eax, 0x5c
mov word [edi], ax
mov edi, dword [ebx + 0x88]
mov dword [esp], edi
call sub.msvcrt.dll_strlen
add edi, eax
jmp 0x453e20
cmp dword [0x678a20], 0
jne 0x4540a0
mov eax, 0x40000
call fcn.0044f640
mov edi, eax
mov eax, 0x40000
call fcn.0044f640
mov dword [esp + 8], 0x40000
mov esi, eax
mov dword [esp + 4], str.ERROR:_cant_alloc__lu_memory_bytes
jmp 0x454038
cmp dword [0x678a20], 0
jne 0x4540a0
mov eax, 0x40000
call fcn.0044f640
mov edi, eax
mov eax, 0x40000
call fcn.0044f640
mov dword [esp + 8], 0x40000
mov esi, eax
mov dword [esp + 4], str.ERROR:_cant_alloc__lu_memory_bytes
mov dword [esp], edi
call fcn.004c1a60
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00432f50
mov dword [esp + 4], esi
mov dword [esp], 0x5a8fcc
call fcn.004c19d0
jmp 0x45405c
cmp dword [0x678a20], 0
jne 0x4540a0
mov eax, 0x40000
call fcn.0044f640
mov edi, eax
mov eax, 0x40000
call fcn.0044f640
mov dword [esp + 8], 0x40000
mov esi, eax
mov dword [esp + 4], str.ERROR:_cant_alloc__lu_memory_bytes
mov dword [esp], edi
call fcn.004c1a60
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00432f50
mov dword [esp + 4], esi
mov dword [esp], 0x5a8fcc
call fcn.004c19d0
jmp 0x45405c
cmp dword [0x678a20], 0
jne 0x4540a0
mov eax, 0x40000
call fcn.0044f640
mov esi, eax
mov eax, 0x40000
call fcn.0044f640
mov dword [esp + 8], 0x40000
mov ebx, eax
mov dword [esp + 4], str.ERROR:_cant_alloc__lu_memory_bytes
mov dword [esp], esi
call fcn.004c1a60
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00432f50
mov dword [esp + 4], ebx
mov dword [esp], 0x5a8fcc
call fcn.004c19d0
jmp 0x45405c
cmp dword [0x678a20], 0
jne 0x4540a0
mov eax, 0x40000
call fcn.0044f640
mov edi, eax
mov eax, 0x40000
call fcn.0044f640
mov dword [esp + 8], 0x10000
mov esi, eax
jmp 0x4541b1
cmp dword [0x678a20], 0
jne 0x4540a0
mov eax, 0x40000
call fcn.0044f640
mov esi, eax
mov eax, 0x40000
call fcn.0044f640
mov dword [esp + 8], 0x10000
mov ebx, eax
jmp 0x45426d
cmp dword [0x678a20], 0
jne 0x4540a0
mov eax, 0x40000
call fcn.0044f640
mov edi, eax
mov eax, 0x40000
call fcn.0044f640
mov dword [esp + 8], 0x10000
mov esi, eax
mov dword [esp + 4], str.ERROR:_cant_alloc__lu_memory_bytes
jmp 0x454038
cmp dword [0x678a20], 0
jne 0x4540a0
mov eax, 0x40000
call fcn.0044f640
mov edi, eax
mov eax, 0x40000
call fcn.0044f640
mov dword [esp + 8], 0x10000
mov esi, eax
jmp 0x45420f
cmp dword [0x678a20], 0
jne 0x4540a0
mov eax, 0x40000
call fcn.0044f640
mov esi, eax
mov eax, 0x40000
call fcn.0044f640
mov dword [esp + 8], 0x40000
mov dword [esp + 4], str.ERROR:_cant_alloc__lu_memory_bytes
mov ebx, eax
jmp 0x453f9b