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

Disassembly:
push 0xffffffffffffffff
push 0x5913c73c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xa8]
lea eax, [esp + 0x18]
mov dword [esp + 0x9c], esi
push eax
mov eax, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0xc0]
push edx
mov edx, dword [esp + 0xbc]
push eax
mov eax, dword [esp + 0xb4]
push ecx
push edx
push eax
call fcn.590222f0
add esp, 0x1c
lea ecx, [esp + 0x28]
call fcn.590a6450
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 1
mov dword [esp + 0x38], esi
call fcn.590a6450
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x9c], 2
cmp eax, esi
jle 0x59023519
lea ecx, [esp + 0x64]
call fcn.5909fd90
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.5909fd90
mov eax, dword [0x5914f850]
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 0x59023473
mov edx, dword [esp + 0x18]
lea eax, [edx + 4]
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
jb 0x59022fca
mov esi, dword [eax + 0xc]
test esi, esi
je 0x59022fd8
inc ebp
add eax, 0x24
cmp ebp, ecx
jge 0x59023473
jmp 0x59022fba
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.590a03a0
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.590a03a0
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.5909a5a0
lea eax, [esi + 0x1c]
lea ecx, [esp + 0x5c]
push eax
call fcn.5909a5a0
add esi, 0x20
lea ecx, [esp + 0x60]
push esi
call fcn.5909a5a0
mov ecx, dword [esp + 0x78]
push ebp
push ecx
lea ecx, [esp + 0x7c]
call fcn.590a6690
mov eax, dword [0x59194a20]
test eax, eax
je 0x590230a7
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 0x591949b4
call fcn.59078030
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.590229b0
mov eax, dword [esp + 0x10]
add ebx, 0x24
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x10], eax
jne 0x590230bd
test esi, esi
je 0x590230f8
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.5907ce30
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 0x59023258
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.5907da38
add esp, 8
test eax, eax
jne 0x5902323c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov eax, dword [esi + ecx + 0x18]
push eax
push edx
call fcn.5907da38
add esp, 8
test eax, eax
jne 0x5902323c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esi + eax + 4]
jne 0x59023240
cmp edi, dword [esi + eax + 0x10]
jne 0x59023240
mov edx, dword [esp + 0x68]
lea eax, [esi + eax + 0x20]
push eax
push edx
lea ecx, [esp + 0x6c]
call fcn.590a03a0
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.590a6690
mov eax, dword [0x59194a20]
mov dword [esp + 0x14], 1
test eax, eax
je 0x590231e4
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 0x591949b4
call fcn.59078030
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.590229b0
add ebp, 0x24
mov ecx, ebx
dec ebx
test ecx, ecx
jne 0x590231f4
test edi, edi
je 0x59023225
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.5907ce30
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 0x59023240
mov eax, dword [esp + 0x18]
dec ebx
sub esi, 0x24
test ebx, ebx
mov dword [esp + 0x10], ebx
jge 0x59023124
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x59023276
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0xd
call fcn.5909a410
mov byte [esp + 0x9c], 0xc
jmp 0x59023427
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], 1
cmp eax, edi
jne 0x5902340e
mov eax, dword [esp + 0x68]
or ebx, 0xffffffff
or esi, 0xffffffff
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
jle 0x590233b8
cmp eax, 1
je 0x59023390
xor ebp, ebp
cmp edi, ebp
jne 0x590232ec
mov eax, dword [esp + 0x64]
push 0x180
push 0x8002
mov eax, dword [eax]
push eax
call fcn.5907df08
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x5902337c
push 2
push ebp
push ebx
call fcn.5907d896
add esp, 0xc
cmp eax, 0xffffffff
je 0x5902338c
jmp 0x59023369
mov ecx, dword [esp + 0x64]
push 0x180
push 0x8000
mov eax, dword [ecx + edi*4]
push eax
call fcn.5907df08
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x5902338c
push 2
push ebp
push esi
call fcn.5907d896
push 0
push 0
push esi
mov ebp, eax
call fcn.5907d896
push 0
push 0
push esi
call fcn.5907d896
add esp, 0x24
cmp eax, 0xffffffff
je 0x59023382
lea edx, [ebp + 1]
push edx
call fcn.5912c500
mov edi, eax
push ebp
push edi
push esi
call fcn.5907dc1b
push eax
push edi
push ebx
call fcn.5907d27d
push esi
call fcn.5907d19d
add esp, 0x20
test edi, edi
je 0x59023365
push edi
call fcn.5912c529
add esp, 4
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x590232a2
jmp 0x59023390
mov dword [esp + 0x14], ebp
jmp 0x5902339e
mov dword [esp + 0x14], 0
jmp 0x59023390
mov dword [esp + 0x14], ebp
cmp ebx, 0xffffffff
je 0x5902339e
push ebx
call fcn.5907d19d
add esp, 4
cmp esi, 0xffffffff
je 0x590233ac
push esi
call fcn.5907d19d
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5902348e
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.5909a5a0
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.5909a5a0
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.5909a410
mov byte [esp + 0x9c], 0x12
lea ecx, [esp + 0x5c]
call fcn.5909a410
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 4
call fcn.5909a410
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.5909fda0
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 2
call fcn.5909fda0
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x590234e6
jmp 0x59022f57
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0xa
call fcn.5909a410
mov byte [esp + 0x9c], 9
jmp 0x590234a7
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0x10
call fcn.5909a410
mov byte [esp + 0x9c], 0xf
lea ecx, [esp + 0x5c]
call fcn.5909a410
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 4
call fcn.5909a410
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.5909fda0
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 2
call fcn.5909fda0
cmp dword [esp + 0x38], 0x6400000
jb 0x59023519
mov eax, dword [esp + 0x78]
xor esi, esi
test eax, eax
jle 0x59023519
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.590a6690
mov eax, dword [esp + 0x78]
inc esi
cmp esi, eax
jl 0x590234fa
mov edi, dword [esp + 0x2c]
test edi, edi
jle 0x59023562
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov ebx, 1
cmp ebx, edi
mov edx, ebx
jge 0x59023555
mov esi, dword [eax + edx*4]
mov ebp, dword [ecx + eax]
cmp ebp, esi
jae 0x59023550
mov dword [ecx + eax], esi
mov eax, dword [esp + 0x28]
mov edi, ebp
mov dword [eax + edx*4], edi
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
inc edx
cmp edx, edi
jl 0x59023532
inc ebx
add ecx, 4
lea edx, [ebx - 1]
cmp edx, edi
jl 0x5902352c
jmp 0x59023566
mov eax, dword [esp + 0x28]
xor esi, esi
test edi, edi
jle 0x590235d0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x59023578
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0xac]
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.590a0970
mov ecx, dword [esp + 0x28]
push 1
mov edx, dword [ecx + esi*4]
mov ecx, ebx
push edx
call fcn.590a0970
mov eax, dword [esp + 0x28]
push 1
mov ecx, dword [eax + esi*4]
push ecx
mov ecx, dword [esp + 0xbc]
call fcn.590a6770
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x59023574
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 1
call fcn.590a6460
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 0
call fcn.590a6460
mov esi, dword [esp + 0x18]
mov dword [esp + 0x9c], 0xffffffff
test esi, esi
je 0x59023660
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x3c], esi
test edi, edi
je 0x59023657
mov ebp, 0x16
mov bl, 0x15
lea ecx, [esi + 0x20]
mov dword [esp + 0x9c], ebp
call fcn.5909a410
lea ecx, [esi + 0x1c]
mov byte [esp + 0x9c], bl
call fcn.5909a410
lea ecx, [esi + 0x18]
mov dword [esp + 0x9c], 0xffffffff
call fcn.5909a410
add esi, 0x24
dec edi
mov dword [esp + 0x3c], esi
jne 0x59023618
mov esi, dword [esp + 0x18]
push esi
call fcn.5912c529
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