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

Disassembly:
push 0xffffffffffffffff
push 0x59141b3c
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.59023780
mov eax, dword [esp + 0x38]
add esp, 0x1c
test eax, eax
jne 0x59024d76
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.59024070
add esp, 0x20
lea ecx, [esp + 0x28]
call fcn.590ab1c0
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 1
mov dword [esp + 0x38], 0
call fcn.590ab1c0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x9c], 2
test eax, eax
jle 0x590253bf
lea ecx, [esp + 0x64]
call fcn.590a4b00
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.590a4b00
mov eax, dword [0x59155850]
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 0x590252d3
mov edx, dword [esp + 0x18]
lea eax, [edx + 4]
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
jb 0x59024e1f
mov esi, dword [eax + 0xc]
test esi, esi
je 0x59024e2d
inc ebp
add eax, 0x24
cmp ebp, ecx
jge 0x590252d3
jmp 0x59024e0f
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.590a5110
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.590a5110
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.5909f310
lea eax, [esi + 0x1c]
lea ecx, [esp + 0x5c]
push eax
call fcn.5909f310
add esi, 0x20
lea ecx, [esp + 0x60]
push esi
call fcn.5909f310
mov ecx, dword [esp + 0x78]
push ebp
push ecx
lea ecx, [esp + 0x7c]
call fcn.590ab400
mov eax, dword [0x5919cca0]
test eax, eax
je 0x59024efc
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 0x5919cc34
call fcn.5907cd70
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.59023e40
mov eax, dword [esp + 0x10]
add ebx, 0x24
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x10], eax
jne 0x59024f12
test esi, esi
je 0x59024f4d
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.59081ba0
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 0x590250ad
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.590827a8
add esp, 8
test eax, eax
jne 0x59025091
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov eax, dword [esi + ecx + 0x18]
push eax
push edx
call fcn.590827a8
add esp, 8
test eax, eax
jne 0x59025091
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esi + eax + 4]
jne 0x59025095
cmp edi, dword [esi + eax + 0x10]
jne 0x59025095
mov edx, dword [esp + 0x68]
lea eax, [esi + eax + 0x20]
push eax
push edx
lea ecx, [esp + 0x6c]
call fcn.590a5110
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.590ab400
mov eax, dword [0x5919cca0]
mov dword [esp + 0x14], 1
test eax, eax
je 0x59025039
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 0x5919cc34
call fcn.5907cd70
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.59023e40
add ebp, 0x24
mov ecx, ebx
dec ebx
test ecx, ecx
jne 0x59025049
test edi, edi
je 0x5902507a
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.59081ba0
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 0x59025095
mov eax, dword [esp + 0x18]
dec ebx
sub esi, 0x24
test ebx, ebx
mov dword [esp + 0x10], ebx
jge 0x59024f79
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x590250cb
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0xd
call fcn.5909f180
mov byte [esp + 0x9c], 0xc
jmp 0x5902527c
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], 1
cmp eax, edi
jne 0x59025263
mov eax, dword [esp + 0x68]
or ebx, 0xffffffff
or esi, 0xffffffff
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
jle 0x5902520d
cmp eax, 1
je 0x590251e5
xor ebp, ebp
cmp edi, ebp
jne 0x59025141
mov eax, dword [esp + 0x64]
push 0x180
push 0x8002
mov eax, dword [eax]
push eax
call fcn.59082c78
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x590251d1
push 2
push ebp
push ebx
call fcn.59082606
add esp, 0xc
cmp eax, 0xffffffff
je 0x590251e1
jmp 0x590251be
mov ecx, dword [esp + 0x64]
push 0x180
push 0x8000
mov eax, dword [ecx + edi*4]
push eax
call fcn.59082c78
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x590251e1
push 2
push ebp
push esi
call fcn.59082606
push 0
push 0
push esi
mov ebp, eax
call fcn.59082606
push 0
push 0
push esi
call fcn.59082606
add esp, 0x24
cmp eax, 0xffffffff
je 0x590251d7
lea edx, [ebp + 1]
push edx
call fcn.591315b0
mov edi, eax
push ebp
push edi
push esi
call fcn.5908298b
push eax
push edi
push ebx
call fcn.59081fed
push esi
call fcn.59081f0d
add esp, 0x20
test edi, edi
je 0x590251ba
push edi
call fcn.591315d9
add esp, 4
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x590250f7
jmp 0x590251e5
mov dword [esp + 0x14], ebp
jmp 0x590251f3
mov dword [esp + 0x14], 0
jmp 0x590251e5
mov dword [esp + 0x14], ebp
cmp ebx, 0xffffffff
je 0x590251f3
push ebx
call fcn.59081f0d
add esp, 4
cmp esi, 0xffffffff
je 0x59025201
push esi
call fcn.59081f0d
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5902532d
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.5909f310
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.5909f310
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.5909f180
mov byte [esp + 0x9c], 0x12
lea ecx, [esp + 0x5c]
call fcn.5909f180
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 4
call fcn.5909f180
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.590a4b10
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 2
call fcn.590a4b10
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0xac]
test eax, eax
jle 0x5902538c
jmp 0x59024dac
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0xa
call fcn.5909f180
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 9
call fcn.5909f180
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 4
call fcn.5909f180
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.590a4b10
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 2
call fcn.590a4b10
jmp 0x5902538c
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0x10
call fcn.5909f180
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 0xf
call fcn.5909f180
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 4
call fcn.5909f180
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.590a4b10
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 2
call fcn.590a4b10
mov ebx, dword [esp + 0xac]
cmp dword [esp + 0x38], 0x6400000
jb 0x590253bf
mov eax, dword [esp + 0x78]
xor esi, esi
test eax, eax
jle 0x590253bf
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.590ab400
mov eax, dword [esp + 0x78]
inc esi
cmp esi, eax
jl 0x590253a0
mov edi, dword [esp + 0x2c]
test edi, edi
jle 0x59025407
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov ebp, 1
cmp ebp, edi
mov edx, ebp
jge 0x590253fa
mov esi, dword [eax + edx*4]
cmp dword [ecx + eax], esi
jae 0x590253f5
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 0x590253d8
inc ebp
add ecx, 4
lea edx, [ebp - 1]
cmp edx, edi
jl 0x590253d2
jmp 0x5902540b
mov eax, dword [esp + 0x28]
xor esi, esi
test edi, edi
jle 0x59025484
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x5902541d
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.590a56e0
mov ecx, dword [esp + 0x28]
push 1
mov edx, dword [ecx + esi*4]
mov ecx, ebx
push edx
call fcn.590a56e0
mov eax, dword [esp + 0x28]
push 1
mov ecx, dword [eax + esi*4]
push ecx
mov ecx, dword [esp + 0xbc]
call fcn.590ab4e0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xc0]
push 1
mov eax, dword [edx + esi*4]
push eax
call fcn.590ab4e0
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x59025419
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 1
call fcn.590ab1d0
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 0
call fcn.590ab1d0
mov esi, dword [esp + 0x18]
mov dword [esp + 0x9c], 0xffffffff
test esi, esi
je 0x59025516
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], esi
test eax, eax
je 0x5902550d
lea edi, [eax]
mov ebp, 0x16
mov bl, 0x15
lea ecx, [esi + 0x20]
mov dword [esp + 0x9c], ebp
call fcn.5909f180
lea ecx, [esi + 0x1c]
mov byte [esp + 0x9c], bl
call fcn.5909f180
lea ecx, [esi + 0x18]
mov dword [esp + 0x9c], 0xffffffff
call fcn.5909f180
add esi, 0x24
dec edi
mov dword [esp + 0x3c], esi
jne 0x590254ce
mov esi, dword [esp + 0x18]
push esi
call fcn.591315d9
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