Function at 0x46cb90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4ea8b6
mov eax, dword fs:[0]
push eax
mov eax, 0x1644
call fcn.004c3aa0
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x1640], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x1658]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
xor ebx, ebx
push 0x4ffc58
push ebx
mov dword [esp + 0x1668], ebx
mov word [esp + 0x28], bx
mov dword [esp + 0x2a], ebx
mov word [esp + 0x2e], bx
call fcn.004c8c93
add esp, 8
push 1
lea ecx, [esp + 0x64]
call fcn.00427cf0
mov eax, dword [esp + 0x166c]
mov esi, 8
cmp dword [esp + 0x1680], esi
mov byte [esp + 0x1660], 1
jae 0x46cc27
lea eax, [esp + 0x166c]
push 0x40
push 0x21
push eax
lea ecx, [esp + 0x74]
call fcn.00427f10
test eax, eax
jne 0x46cc5a
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x68]
lea ecx, [esp + ecx + 0x60]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x46cc53
or eax, 4
push ebx
push eax
call fcn.00426160
cmp dword [esp + 0xb4], ebx
je 0x46ce93
lea ecx, [esp + 0xd64]
call fcn.00462330
lea ecx, [esp + 0x134c]
call fcn.0045a640
push 0x50c
push 0xffffffffffffffff
lea eax, [esp + 0xd70]
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x166c], 3
call fcn.00427df0
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0xd68]
call fcn.0045e7c0
push 3
push ebx
push 0x4ffbc0
mov ecx, eax
call fcn.00415c40
cmp eax, 0xffffffff
sete byte [esp + 0x1f]
cmp dword [esp + 0x104], 0x10
jb 0x46cce4
mov edx, dword [esp + 0xf0]
push edx
call fcn.004aef39
add esp, 4
cmp byte [esp + 0x1f], bl
mov ebp, 0xa
je 0x46cf06
mov eax, esi
lea ecx, [esp + 0xd70]
lea edx, [esp + 0xd68]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x46cd1b
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x46cd03
cmp eax, ebx
je 0x46cd80
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x46cd6a
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x46cd7b
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x46cd6a
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x46cd7b
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x46cd6a
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x46cd7b
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x46cd7b
mov eax, 1
cmp esi, ebx
lea esi, [eax + 7]
jg 0x46cd82
or eax, 0xffffffff
jmp 0x46cd82
mov esi, 8
xor eax, eax
cmp eax, ebx
je 0x46cedb
lea ecx, [esp + 0x68]
call fcn.00425410
test eax, eax
jne 0x46cdb8
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x68]
lea ecx, [esp + ecx + 0x60]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x46cdb1
or eax, 4
push ebx
push eax
call fcn.00426160
cmp dword [esp + 0x1680], esi
mov eax, dword [esp + 0x166c]
jae 0x46cdcf
lea eax, [esp + 0x166c]
push 0x40
push 0x21
push eax
lea ecx, [esp + 0x74]
call fcn.00427f10
test eax, eax
jne 0x46ce02
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x68]
lea ecx, [esp + ecx + 0x60]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x46cdfb
or eax, 4
push ebx
push eax
call fcn.00426160
cmp dword [esp + 0xb4], ebx
je 0x46d616
push 0x304
push 0xffffffffffffffff
lea edx, [esp + 0x1358]
push edx
lea ecx, [esp + 0x6c]
call fcn.00427df0
cmp word [esp + 0x1356], bp
ja 0x46ce74
cmp word [esp + 0x1590], 0x20
ja 0x46ce74
cmp word [esp + 0x1652], bp
ja 0x46ce74
cmp dword [esp + 0x135c], 0x19
ja 0x46ce74
jb 0x46ce5b
cmp dword [esp + 0x1358], ebx
ja 0x46ce74
lea eax, [esp + 0x134c]
push eax
lea ecx, [esp + 0xd68]
call fcn.0045a6b0
jmp 0x46cf4e
lea ecx, [esp + 0xd64]
mov dword [esp + 0x134c], 0x4f6a4c
mov byte [esp + 0x1660], 1
call fcn.00462540
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1660], bl
call fcn.00426720
lea ecx, [esp + 0xb8]
push ecx
mov dword [esp + 0xbc], vtable.std::ios_base.0
call fcn.004e2702
add esp, 4
cmp dword [esp + 0x1680], esi
jb 0x46d67c
mov edx, dword [esp + 0x166c]
push edx
jmp 0x46d674
push 0x4ffbc0
lea eax, [esp + 0xd6c]
push 4
push eax
call fcn.004c1687
add esp, 0xc
mov byte [esp + 0xd6b], bl
mov dword [esp + 0xd6c], 1
jmp 0x46cf4e
cmp word [esp + 0xd76], bp
ja 0x46d616
cmp word [esp + 0x11b0], 0x20
ja 0x46d616
cmp word [esp + 0x1272], bp
ja 0x46d616
cmp dword [esp + 0xd7c], 0x19
ja 0x46d616
jb 0x46cf4e
cmp dword [esp + 0xd78], ebx
ja 0x46d616
mov cx, word [esp + 0xd70]
mov eax, dword [esp + 0xd72]
cmp eax, ebx
mov bp, cx
mov word [esp + 0x20], bp
mov dword [esp + 0x22], eax
jne 0x46d02d
cmp cx, bx
jne 0x46d02d
lea ecx, [esp + 0x68]
call fcn.00425410
test eax, eax
jne 0x46cfa8
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x68]
lea ecx, [esp + ecx + 0x60]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x46cfa1
or eax, 4
push ebx
push eax
call fcn.00426160
cmp dword [esp + 0x1680], esi
mov eax, dword [esp + 0x166c]
jae 0x46cfbf
lea eax, [esp + 0x166c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0xd64]
mov dword [esp + 0x134c], 0x4f6a4c
mov byte [esp + 0x1660], 1
call fcn.00462540
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1660], bl
call fcn.00426720
lea edx, [esp + 0xb8]
push edx
mov dword [esp + 0xbc], vtable.std::ios_base.0
call fcn.004e2702
add esp, 4
cmp dword [esp + 0x1680], esi
jb 0x46d67c
mov eax, dword [esp + 0x166c]
push eax
jmp 0x46d674
xor edi, edi
cmp word [esp + 0x11b0], bx
mov word [esp + 0x14], bx
mov dword [esp + 0x16], ebx
mov word [esp + 0x1a], bx
jbe 0x46d084
lea esi, [esp + 0x11b4]
mov edi, edi
mov cx, word [esi - 2]
mov edx, dword [esi]
mov word [esp + 0x14], cx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1e], edx
call fcn.00461320
movzx edx, word [esp + 0x11b0]
add edi, 1
add esi, 6
cmp edi, edx
jb 0x46d050
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
lea esi, [edi + 0x24]
push ecx
mov ecx, esi
call fcn.0045d2c0
mov edx, dword [esi + 4]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], esi
call fcn.0043fcb0
test al, al
je 0x46d153
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov ecx, dword [esp + 0x22]
lea edx, [esp + 0x48]
mov dword [esp + 0x4a], ecx
push edx
lea ecx, [esp + 0xf0]
mov byte [esp + 0x1664], 4
mov word [esp + 0x4c], bp
mov word [esp + 0x52], bx
call fcn.00468910
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov byte [esp + 0x1668], 5
call fcn.0046c730
lea ecx, [esp + 0xf4]
mov byte [esp + 0x1660], 4
call fcn.0045d3f0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0045d2c0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x18], edx
mov byte [esp + 0x1660], 3
call fcn.0045d3f0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x1660], 6
call fcn.004108b0
add eax, 8
lea ecx, [esp + 0xce4]
mov dword [esp + 0x2c], eax
call fcn.00462250
xor esi, esi
cmp word [esp + 0xd76], 5
mov byte [esp + 0x1660], 7
mov dword [esp + 0x133a], ebx
jne 0x46d1a8
cmp dword [esp + 0x1684], ebx
je 0x46d1b4
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.0046bad0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x64]
call fcn.00462ed0
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x68]
call fcn.00463040
push 0x1c
push 0xffffffffffffffff
lea edx, [esp + 0xcf0]
push edx
lea ecx, [esp + 0x6c]
call fcn.00427df0
lea ecx, [esp + 0x38]
call fcn.004402a0
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jne 0x46d387
lea esp, [esp]
mov ax, word [esp + 0xcfc]
cmp ax, 3
jne 0x46d216
add esi, 1
jmp 0x46d331
cmp ax, 1
jne 0x46d226
mov word [esp + 0xcfc], bx
jmp 0x46d22b
cmp ax, bx
jne 0x46d248
add dword [esp + 0x133a], 1
push ecx
lea ecx, [esp + 0xd68]
call fcn.0045f9d0
mov ax, word [esp + 0xcfc]
cmp ax, 2
jne 0x46d331
cmp dword [edi + 0x13e], ebx
je 0x46d331
lea ecx, [esp + 0xd10]
call fcn.00462300
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 0x10a]
mov byte [esp + 0x1668], 8
call fcn.0045d240
mov ecx, eax
call fcn.004108b0
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x4c]
add eax, 8
push ecx
lea ecx, [eax + 0x1c]
call fcn.004ac060
lea edx, [esp + 0xce4]
push edx
lea ecx, [esp + 0xd14]
call fcn.0045a5a0
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xd88]
push ecx
lea ecx, [esp + 0xd40]
mov dword [esp + 0xd64], eax
call fcn.00410e80
mov edx, dword [esp + 0x22]
mov ecx, dword [edi + 0x13e]
mov word [esp + 0xd58], bp
mov dword [esp + 0xd5a], edx
mov word [esp + 0xd5e], bx
call fcn.004a9510
mov ecx, dword [edi + 0x13e]
lea eax, [esp + 0xd10]
add ecx, 0x44
push eax
call fcn.004674a0
mov ecx, dword [edi + 0x13e]
call fcn.004a9520
lea ecx, [esp + 0xd10]
mov byte [esp + 0x1660], 7
call fcn.00461060
lea ecx, [esp + 0xce4]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0046b520
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x64]
call fcn.00462ed0
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x68]
call fcn.00463040
push 0x1c
push 0xffffffffffffffff
lea eax, [esp + 0xcf0]
push eax
lea ecx, [esp + 0x6c]
call fcn.00427df0
lea ecx, [esp + 0x38]
call fcn.004402a0
mov ecx, dword [esp + 0x28]
cmp eax, ecx
je 0x46d200
lea ecx, [esp + 0x60]
call fcn.00427160
lea ecx, [esp + 0x38]
call fcn.004402a0
cmp esi, eax
jne 0x46d458
mov ecx, dword [esp + 0xd78]
cmp ecx, dword [esp + 0xd80]
jne 0x46d3c5
mov edx, dword [esp + 0xd7c]
cmp edx, dword [esp + 0xd84]
je 0x46d458
lea ecx, [esp + 0x133e]
mov dword [esp + 0x133a], ebx
call fcn.0042d200
lea ecx, [esp + 0x38]
xor esi, esi
call fcn.004402a0
test eax, eax
lea ebp, [esi + 1]
jbe 0x46d442
lea ebx, [ebx]
mov eax, dword [esp + 0x28]
add dword [esp + 0x133a], ebp
push eax
lea ecx, [esp + 0xd68]
call fcn.0045f9d0
push esi
lea ecx, [esp + 0x3c]
call fcn.004402c0
push esi
lea ecx, [esp + 0x3c]
mov word [eax + 0x18], bx
call fcn.004402c0
push esi
lea ecx, [esp + 0x3c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
call fcn.004402c0
lea ecx, [esp + 0x38]
mov dword [eax + 0xc], ebx
add esi, ebp
call fcn.004402a0
cmp esi, eax
jb 0x46d3f0
mov dword [esp + 0xd80], ebx
mov dword [esp + 0xd84], ebx
mov word [esp + 0xd76], bp
mov ebp, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.00468410
lea ecx, [esp + 0x38]
call fcn.004402a0
mov esi, eax
sub esi, dword [esp + 0x133a]
cmp word [esp + 0xd76], 2
mov dword [esp + 0x133a], esi
jne 0x46d4d3
mov ecx, ebp
call fcn.004402a0
cmp esi, eax
jne 0x46d4d3
push ebx
mov ecx, ebp
call fcn.004402c0
mov word [eax + 0x18], 2
mov eax, dword [esp + 0xd78]
cmp eax, dword [esp + 0xd80]
mov ecx, dword [esp + 0xd7c]
jne 0x46d4c5
cmp ecx, dword [esp + 0xd84]
je 0x46d4d3
mov dword [esp + 0xd80], eax
mov dword [esp + 0xd84], ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
lea esi, [edi + 0x30]
push eax
mov ecx, esi
call fcn.004413b0
mov ecx, dword [esi + 4]
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], esi
call fcn.0043fc80
test al, al
je 0x46d51a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00469db0
sub esp, 0x5e8
lea eax, [esp + 0x134c]
mov ecx, esp
mov dword [esp + 0x614], esp
push eax
call fcn.00467630
mov ecx, dword [esp + 0x60c]
mov edx, dword [esp + 0x608]
push ecx
push edx
lea eax, [esp + 0x6f8]
push eax
call fcn.0046aa60
add esp, 0x5f4
push eax
lea ecx, [esp + 0x6fa]
mov byte [esp + 0x1664], 9
call fcn.004688e0
lea ecx, [esp + 0x6f6]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
mov byte [esp + 0x1668], 0xa
call fcn.0046bef0
lea ecx, [esp + 0x6fe]
mov byte [esp + 0x1660], 9
call fcn.00462540
lea ecx, [esp + 0x110]
mov byte [esp + 0x1660], 7
call fcn.00462540
lea ecx, [esp + 0xce4]
mov byte [esp + 0x1660], 6
call fcn.00460eb0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1660], 3
call fcn.0045d3f0
lea ecx, [esp + 0xd64]
mov dword [esp + 0x134c], 0x4f6a4c
mov byte [esp + 0x1660], 1
call fcn.00462540
lea ecx, [esp + 0x60]
mov byte [esp + 0x1660], bl
call fcn.00426f50
lea ecx, [esp + 0x1668]
call fcn.00401470
xor eax, eax
jmp 0x46d681
lea ecx, [esp + 0xd64]
mov dword [esp + 0x134c], 0x4f6a4c
mov byte [esp + 0x1660], 1
call fcn.00462540
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1660], bl
call fcn.00426720
lea eax, [esp + 0xb8]
push eax
mov dword [esp + 0xbc], vtable.std::ios_base.0
call fcn.004e2702
add esp, 4
cmp dword [esp + 0x1680], esi
jb 0x46d67c
mov ecx, dword [esp + 0x166c]
push ecx
call fcn.004aef39
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1658]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1640]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x1650
ret 0x20