Function at 0x590290e0
Capabilities:
Delete file
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5914f1cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
mov esi, dword [esp + 0xb8]
mov edi, dword [esp + 0xb0]
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x18]
push eax
push ecx
push edx
push ebx
push esi
push edi
push ebp
call fcn.59026f10
mov eax, dword [esp + 0x38]
add esp, 0x1c
test eax, eax
jne 0x59029186
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xa8]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xc4]
push ecx
push edx
push ebx
push esi
push edi
push eax
push ebp
call fcn.59027960
add esp, 0x20
lea ecx, [esp + 0x28]
call fcn.590b4e60
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 1
mov dword [esp + 0x38], 0
call fcn.590b4e60
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x9c], 2
test eax, eax
jle 0x590297d9
lea ecx, [esp + 0x64]
call fcn.590acfe0
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.590acfe0
mov eax, dword [0x591638c0]
mov byte [esp + 0x9c], 4
mov dword [esp + 0x58], eax
mov byte [esp + 0x9c], 5
mov dword [esp + 0x5c], eax
mov byte [esp + 0x9c], 6
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
test ecx, ecx
mov byte [esp + 0x9c], 8
jle 0x590296ed
mov edx, dword [esp + 0x18]
lea eax, [edx + 4]
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
jb 0x5902922f
mov esi, dword [eax + 0xc]
test esi, esi
je 0x5902923d
inc ebp
add eax, 0x24
cmp ebp, ecx
jge 0x590296ed
jmp 0x5902921f
mov ecx, dword [esp + 0x68]
lea edi, [ebp + ebp*8]
shl edi, 2
lea eax, [edi + edx + 0x20]
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.590ad5f0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x84]
lea eax, [edi + edx + 0x1c]
push eax
mov eax, dword [esp + 0x8c]
push eax
call fcn.590ad5f0
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + ecx]
lea esi, [edi + ecx]
mov dword [esp + 0x40], edx
mov eax, dword [esi + 4]
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x48], ecx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x4c], edx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x50], eax
mov ecx, dword [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esp + 0x54], ecx
push edx
lea ecx, [esp + 0x5c]
call fcn.590a77f0
lea eax, [esi + 0x1c]
lea ecx, [esp + 0x5c]
push eax
call fcn.590a77f0
add esi, 0x20
lea ecx, [esp + 0x60]
push esi
call fcn.590a77f0
mov ecx, dword [esp + 0x78]
push ebp
push ecx
lea ecx, [esp + 0x7c]
call fcn.590b50a0
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5902930c
mov eax, dword [esp + 0x18]
mov edx, dword [edi + eax + 0x10]
mov eax, dword [edi + eax + 0x1c]
push edx
push eax
push ebp
push str.DealAttachChipCombine_Header___d___s___d_
push str.Combine
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x1c
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub esi, ebp
mov dword [esp + 0x10], 0
dec esi
lea ebx, [edi + ecx]
mov ecx, ebx
call fcn.59027670
mov eax, dword [esp + 0x10]
add ebx, 0x24
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x10], eax
jne 0x59029322
test esi, esi
je 0x5902935d
lea eax, [esi + esi*8]
lea ecx, [ebp + ebp*8 + 9]
shl eax, 2
push eax
mov eax, dword [esp + 0x1c]
add edi, eax
lea edx, [eax + ecx*4]
push edx
push edi
call fcn.5908a070
add esp, 0xc
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x48]
dec ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ebx
dec ebx
test ebx, ebx
mov dword [esp + 0x10], ebx
jl 0x590294bd
mov eax, dword [esp + 0x18]
lea esi, [ebx + ebx*8]
shl esi, 2
mov eax, dword [esi + eax + 0x1c]
push eax
mov eax, dword [esp + 0x60]
push eax
call fcn.5908ac78
add esp, 8
test eax, eax
jne 0x590294a1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov eax, dword [esi + ecx + 0x18]
push eax
push edx
call fcn.5908ac78
add esp, 8
test eax, eax
jne 0x590294a1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esi + eax + 4]
jne 0x590294a5
cmp edi, dword [esi + eax + 0x10]
jne 0x590294a5
mov edx, dword [esp + 0x68]
lea eax, [esi + eax + 0x20]
push eax
push edx
lea ecx, [esp + 0x6c]
call fcn.590ad5f0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
mov ebp, dword [esi + eax + 8]
mov eax, dword [esi + eax]
push eax
mov eax, dword [esp + 0x30]
add edi, ebp
push eax
mov dword [esp + 0x44], edi
call fcn.590b50a0
mov eax, dword [0x591ae1c8]
mov dword [esp + 0x14], 1
test eax, eax
je 0x59029449
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + eax + 0x10]
mov edx, dword [esi + eax + 0x1c]
push ecx
push edx
push ebx
push str.DealAttachChipCombine_Other___d___s___d_
push str.Combine
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x1c
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub edi, ebx
dec edi
lea ebp, [esi + eax]
xor ebx, ebx
mov ecx, ebp
call fcn.59027670
add ebp, 0x24
mov ecx, ebx
dec ebx
test ecx, ecx
jne 0x59029459
test edi, edi
je 0x5902948a
mov eax, dword [esp + 0x18]
lea edx, [edi + edi*8]
shl edx, 2
push edx
lea ecx, [esi + eax + 0x24]
lea edx, [esi + eax]
push ecx
push edx
call fcn.5908a070
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x10]
dec eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
jmp 0x590294a5
mov eax, dword [esp + 0x18]
dec ebx
sub esi, 0x24
test ebx, ebx
mov dword [esp + 0x10], ebx
jge 0x59029389
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x590294db
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0xd
call fcn.590a7660
mov byte [esp + 0x9c], 0xc
jmp 0x59029696
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], 1
cmp eax, edi
jne 0x5902967d
mov eax, dword [esp + 0x68]
or ebx, 0xffffffff
or esi, 0xffffffff
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
jle 0x59029627
cmp eax, 1
je 0x590295ff
xor ebp, ebp
cmp edi, ebp
jne 0x59029554
mov eax, dword [esp + 0x64]
push 0x180
push 0x8002
mov eax, dword [eax]
push eax
call fcn.5908b171
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x590295eb
push 2
push ebp
push ebx
call fcn.5908aad6
add esp, 0xc
cmp eax, 0xffffffff
je 0x590295fb
jmp 0x590295d8
mov ecx, dword [esp + 0x64]
push 0x180
push 0x8000
mov eax, dword [ecx + edi*4]
push eax
call fcn.5908b171
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x590295fb
push 2
push ebp
push esi
call fcn.5908aad6
push 0
push 0
push esi
mov ebp, eax
call fcn.5908aad6
push 0
push 0
push esi
call fcn.5908aad6
add esp, 0x24
cmp eax, 0xffffffff
je 0x590295f1
lea edx, [ebp + 1]
push edx
call fcn.5913e1e0
mov edi, eax
push ebp
push edi
push esi
call fcn.5908ae5b
push eax
push edi
push ebx
call fcn.5908a4bd
push esi
call fcn.5908a3dd
add esp, 0x20
or esi, 0xffffffff
test edi, edi
je 0x590295d4
push edi
call fcn.5913e209
add esp, 4
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x59029507
jmp 0x590295ff
mov dword [esp + 0x14], ebp
jmp 0x5902960d
mov dword [esp + 0x14], 0
jmp 0x590295ff
mov dword [esp + 0x14], ebp
cmp ebx, 0xffffffff
je 0x5902960d
push ebx
call fcn.5908a3dd
add esp, 4
cmp esi, 0xffffffff
je 0x5902961b
push esi
call fcn.5908a3dd
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x59029747
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x40]
mov ecx, dword [eax]
mov eax, dword [esp + 0x44]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0xac]
push ecx
mov ecx, dword [esp + 0x44]
mov eax, dword [edx]
lea ecx, [eax + ecx*4]
call fcn.590a77f0
mov eax, dword [esp + 0xa8]
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x44]
mov ecx, dword [eax]
lea ecx, [ecx + edx*4]
call fcn.590a77f0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0x13
call fcn.590a7660
mov byte [esp + 0x9c], 0x12
lea ecx, [esp + 0x5c]
call fcn.590a7660
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 4
call fcn.590a7660
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.590acff0
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 2
call fcn.590acff0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0xac]
test eax, eax
jle 0x590297a6
jmp 0x590291bc
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0xa
call fcn.590a7660
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 9
call fcn.590a7660
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 4
call fcn.590a7660
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.590acff0
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 2
call fcn.590acff0
jmp 0x590297a6
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0x10
call fcn.590a7660
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 0xf
call fcn.590a7660
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 4
call fcn.590a7660
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.590acff0
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 2
call fcn.590acff0
mov ebx, dword [esp + 0xac]
cmp dword [esp + 0x38], 0x6400000
jb 0x590297d9
mov eax, dword [esp + 0x78]
xor esi, esi
test eax, eax
jle 0x590297d9
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + esi*4]
lea ecx, [esp + 0x28]
push eax
push edx
call fcn.590b50a0
mov eax, dword [esp + 0x78]
inc esi
cmp esi, eax
jl 0x590297ba
mov edi, dword [esp + 0x2c]
test edi, edi
jle 0x59029821
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov ebp, 1
cmp ebp, edi
mov edx, ebp
jge 0x59029814
mov esi, dword [eax + edx*4]
cmp dword [ecx + eax], esi
jae 0x5902980f
mov edi, dword [ecx + eax]
mov dword [ecx + eax], esi
mov eax, dword [esp + 0x28]
mov dword [eax + edx*4], edi
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
inc edx
cmp edx, edi
jl 0x590297f2
inc ebp
add ecx, 4
lea edx, [ebp - 1]
cmp edx, edi
jl 0x590297ec
jmp 0x59029825
mov eax, dword [esp + 0x28]
xor esi, esi
test edi, edi
jle 0x5902989e
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x59029837
mov eax, dword [esp + 0x28]
mov eax, dword [eax + esi*4]
mov ecx, dword [ebx]
mov eax, dword [ecx + eax*4]
push eax
call edi
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xa8]
push 1
mov eax, dword [edx + esi*4]
push eax
call fcn.590adbc0
mov ecx, dword [esp + 0x28]
push 1
mov edx, dword [ecx + esi*4]
mov ecx, ebx
push edx
call fcn.590adbc0
mov eax, dword [esp + 0x28]
push 1
mov ecx, dword [eax + esi*4]
push ecx
mov ecx, dword [esp + 0xbc]
call fcn.590b5180
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xc0]
push 1
mov eax, dword [edx + esi*4]
push eax
call fcn.590b5180
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x59029833
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 1
call fcn.590b4e70
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 0
call fcn.590b4e70
mov esi, dword [esp + 0x18]
mov dword [esp + 0x9c], 0xffffffff
test esi, esi
je 0x59029930
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], esi
test eax, eax
je 0x59029927
lea edi, [eax]
mov ebp, 0x16
mov bl, 0x15
lea ecx, [esi + 0x20]
mov dword [esp + 0x9c], ebp
call fcn.590a7660
lea ecx, [esi + 0x1c]
mov byte [esp + 0x9c], bl
call fcn.590a7660
lea ecx, [esi + 0x18]
mov dword [esp + 0x9c], 0xffffffff
call fcn.590a7660
add esi, 0x24
dec edi
mov dword [esp + 0x3c], esi
jne 0x590298e8
mov esi, dword [esp + 0x18]
push esi
call fcn.5913e209
add esp, 4
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret