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

Disassembly:
push 0xffffffffffffffff
push 0x5914e38c
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.590273d0
mov eax, dword [esp + 0x38]
add esp, 0x1c
test eax, eax
jne 0x590296d6
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.59027e20
add esp, 0x20
lea ecx, [esp + 0x28]
call fcn.590b3a40
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 1
mov dword [esp + 0x38], 0
call fcn.590b3a40
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x9c], 2
test eax, eax
jle 0x59029d29
lea ecx, [esp + 0x64]
call fcn.590abbc0
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.590abbc0
mov eax, dword [0x59162880]
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 0x59029c3d
mov edx, dword [esp + 0x18]
lea eax, [edx + 4]
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
jb 0x5902977f
mov esi, dword [eax + 0xc]
test esi, esi
je 0x5902978d
inc ebp
add eax, 0x24
cmp ebp, ecx
jge 0x59029c3d
jmp 0x5902976f
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.590ac1d0
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.590ac1d0
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.590a63d0
lea eax, [esi + 0x1c]
lea ecx, [esp + 0x5c]
push eax
call fcn.590a63d0
add esi, 0x20
lea ecx, [esp + 0x60]
push esi
call fcn.590a63d0
mov ecx, dword [esp + 0x78]
push ebp
push ecx
lea ecx, [esp + 0x7c]
call fcn.590b3c80
mov eax, dword [0x591ac718]
test eax, eax
je 0x5902985c
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 0x591ac6ac
call fcn.59083dc0
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.59027b30
mov eax, dword [esp + 0x10]
add ebx, 0x24
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x10], eax
jne 0x59029872
test esi, esi
je 0x590298ad
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.59088c50
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 0x59029a0d
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.59089858
add esp, 8
test eax, eax
jne 0x590299f1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov eax, dword [esi + ecx + 0x18]
push eax
push edx
call fcn.59089858
add esp, 8
test eax, eax
jne 0x590299f1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esi + eax + 4]
jne 0x590299f5
cmp edi, dword [esi + eax + 0x10]
jne 0x590299f5
mov edx, dword [esp + 0x68]
lea eax, [esi + eax + 0x20]
push eax
push edx
lea ecx, [esp + 0x6c]
call fcn.590ac1d0
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.590b3c80
mov eax, dword [0x591ac718]
mov dword [esp + 0x14], 1
test eax, eax
je 0x59029999
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 0x591ac6ac
call fcn.59083dc0
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.59027b30
add ebp, 0x24
mov ecx, ebx
dec ebx
test ecx, ecx
jne 0x590299a9
test edi, edi
je 0x590299da
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.59088c50
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 0x590299f5
mov eax, dword [esp + 0x18]
dec ebx
sub esi, 0x24
test ebx, ebx
mov dword [esp + 0x10], ebx
jge 0x590298d9
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x59029a2b
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0xd
call fcn.590a6240
mov byte [esp + 0x9c], 0xc
jmp 0x59029be6
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], 1
cmp eax, edi
jne 0x59029bcd
mov eax, dword [esp + 0x68]
or ebx, 0xffffffff
or esi, 0xffffffff
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
jle 0x59029b77
cmp eax, 1
je 0x59029b4f
xor ebp, ebp
cmp edi, ebp
jne 0x59029aa4
mov eax, dword [esp + 0x64]
push 0x180
push 0x8002
mov eax, dword [eax]
push eax
call fcn.59089d51
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x59029b3b
push 2
push ebp
push ebx
call fcn.590896b6
add esp, 0xc
cmp eax, 0xffffffff
je 0x59029b4b
jmp 0x59029b28
mov ecx, dword [esp + 0x64]
push 0x180
push 0x8000
mov eax, dword [ecx + edi*4]
push eax
call fcn.59089d51
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x59029b4b
push 2
push ebp
push esi
call fcn.590896b6
push 0
push 0
push esi
mov ebp, eax
call fcn.590896b6
push 0
push 0
push esi
call fcn.590896b6
add esp, 0x24
cmp eax, 0xffffffff
je 0x59029b41
lea edx, [ebp + 1]
push edx
call fcn.5913d2d0
mov edi, eax
push ebp
push edi
push esi
call fcn.59089a3b
push eax
push edi
push ebx
call fcn.5908909d
push esi
call fcn.59088fbd
add esp, 0x20
or esi, 0xffffffff
test edi, edi
je 0x59029b24
push edi
call fcn.5913d2f9
add esp, 4
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x59029a57
jmp 0x59029b4f
mov dword [esp + 0x14], ebp
jmp 0x59029b5d
mov dword [esp + 0x14], 0
jmp 0x59029b4f
mov dword [esp + 0x14], ebp
cmp ebx, 0xffffffff
je 0x59029b5d
push ebx
call fcn.59088fbd
add esp, 4
cmp esi, 0xffffffff
je 0x59029b6b
push esi
call fcn.59088fbd
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x59029c97
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.590a63d0
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.590a63d0
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.590a6240
mov byte [esp + 0x9c], 0x12
lea ecx, [esp + 0x5c]
call fcn.590a6240
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 4
call fcn.590a6240
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.590abbd0
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 2
call fcn.590abbd0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0xac]
test eax, eax
jle 0x59029cf6
jmp 0x5902970c
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0xa
call fcn.590a6240
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 9
call fcn.590a6240
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 4
call fcn.590a6240
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.590abbd0
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 2
call fcn.590abbd0
jmp 0x59029cf6
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 0x10
call fcn.590a6240
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 0xf
call fcn.590a6240
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 4
call fcn.590a6240
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 3
call fcn.590abbd0
lea ecx, [esp + 0x64]
mov byte [esp + 0x9c], 2
call fcn.590abbd0
mov ebx, dword [esp + 0xac]
cmp dword [esp + 0x38], 0x6400000
jb 0x59029d29
mov eax, dword [esp + 0x78]
xor esi, esi
test eax, eax
jle 0x59029d29
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.590b3c80
mov eax, dword [esp + 0x78]
inc esi
cmp esi, eax
jl 0x59029d0a
mov edi, dword [esp + 0x2c]
test edi, edi
jle 0x59029d71
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov ebp, 1
cmp ebp, edi
mov edx, ebp
jge 0x59029d64
mov esi, dword [eax + edx*4]
cmp dword [ecx + eax], esi
jae 0x59029d5f
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 0x59029d42
inc ebp
add ecx, 4
lea edx, [ebp - 1]
cmp edx, edi
jl 0x59029d3c
jmp 0x59029d75
mov eax, dword [esp + 0x28]
xor esi, esi
test edi, edi
jle 0x59029dee
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x59029d87
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.590ac7a0
mov ecx, dword [esp + 0x28]
push 1
mov edx, dword [ecx + esi*4]
mov ecx, ebx
push edx
call fcn.590ac7a0
mov eax, dword [esp + 0x28]
push 1
mov ecx, dword [eax + esi*4]
push ecx
mov ecx, dword [esp + 0xbc]
call fcn.590b3d60
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xc0]
push 1
mov eax, dword [edx + esi*4]
push eax
call fcn.590b3d60
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x59029d83
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 1
call fcn.590b3a50
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 0
call fcn.590b3a50
mov esi, dword [esp + 0x18]
mov dword [esp + 0x9c], 0xffffffff
test esi, esi
je 0x59029e80
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], esi
test eax, eax
je 0x59029e77
lea edi, [eax]
mov ebp, 0x16
mov bl, 0x15
lea ecx, [esi + 0x20]
mov dword [esp + 0x9c], ebp
call fcn.590a6240
lea ecx, [esi + 0x1c]
mov byte [esp + 0x9c], bl
call fcn.590a6240
lea ecx, [esi + 0x18]
mov dword [esp + 0x9c], 0xffffffff
call fcn.590a6240
add esi, 0x24
dec edi
mov dword [esp + 0x3c], esi
jne 0x59029e38
mov esi, dword [esp + 0x18]
push esi
call fcn.5913d2f9
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