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

Disassembly:
push 0xffffffffffffffff
push 0x5914de62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov eax, dword [esp + 0x68]
push ebx
push ebp
push esi
push edi
push eax
call fcn.59009ea0
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x59027ab0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x59027ab0
push 0x5001
call fcn.5913d2d0
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x3c], ebx
je 0x59027ab0
mov ecx, dword [esp + 0x7c]
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [ecx + 4]
test eax, eax
jle 0x59027aa7
jmp 0x59027446
mov esi, dword [esp + 0x14]
mov eax, dword [0x591ac718]
test eax, eax
je 0x59027483
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
mov edx, dword [esp + 0x88]
mov ecx, dword [eax + esi*4]
mov eax, dword [edx]
push ecx
mov ecx, dword [eax + esi*4]
push ecx
push esi
push str.GetAttachChipInfo_Attach__d___s___d_
push str.Combine
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
add esp, 0x1c
mov edx, dword [esp + 0x80]
mov dword [ebx], 0
lea ebp, [esi*4]
mov eax, dword [edx]
mov edi, dword [eax + ebp]
cmp edi, 0x5000
jle 0x590274a9
mov edi, 0x5000
mov ecx, dword [esp + 0x7c]
push 0x180
push 0x8000
mov edx, dword [ecx]
mov eax, dword [edx + ebp]
push eax
call fcn.5908928d
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x59027a8f
push edi
push ebx
push esi
call fcn.59089a3b
push esi
call fcn.59088fbd
mov eax, dword [0x59162880]
add esp, 0x10
mov dword [esp + 0x5c], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x60], eax
mov byte [esp + 0x70], 1
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x84]
mov eax, ebp
mov dword [esp + 0x70], 3
mov esi, dword [ecx]
lea ecx, [esp + 0x20]
add eax, esi
push eax
call fcn.590a5840
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x74], 4
call fcn.590a63d0
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 3
call fcn.590a6240
mov edx, dword [0x59162880]
mov dword [esp + 0x10], edx
push 0x591892bc
push edi
push ebx
mov byte [esp + 0x7c], 5
call fcn.5900f930
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x5902759f
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 3
call fcn.590a6240
lea ecx, [esp + 0x64]
mov dword [esp + 0x70], 7
call fcn.590a6240
lea ecx, [esp + 0x60]
mov byte [esp + 0x70], 6
call fcn.590a6240
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], esi
call fcn.590a6240
jmp 0x59027a8f
mov edi, 0x591892bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x24]
not ecx
mov eax, dword [edi + 0x44]
dec ecx
add esi, ecx
mov ecx, dword [edi + 0x40]
push eax
push ecx
push esi
push ebx
push edx
call fcn.5901c790
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 9
call fcn.590a63d0
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 5
call fcn.590a6240
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x59027601
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x60]
call fcn.590a63d0
mov edx, dword [edi + 0x54]
mov eax, dword [edi + 0x50]
push edx
push eax
push esi
lea ecx, [esp + 0x38]
push ebx
push ecx
call fcn.5901c790
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xa
call fcn.590a63d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 5
call fcn.590a6240
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.590a5840
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x7c], 5
call fcn.59027300
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x5902767a
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
mov ecx, dword [eax + ebp]
mov dword [esp + 0x48], ecx
jmp 0x5902768b
push 0xa
push 0
push eax
call fcn.59088c32
add esp, 0xc
mov dword [esp + 0x48], eax
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x60]
push edx
push eax
push esi
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.5901c790
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xc
call fcn.590a63d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 5
call fcn.590a6240
cmp dword [esp + 0x78], 0x400
jne 0x5902770f
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5902771a
push 0x26
push eax
call fcn.59089d28
add esp, 8
test eax, eax
je 0x590276e8
mov word [eax], 0
mov eax, dword [0x591ac718]
test eax, eax
je 0x5902770f
mov edx, dword [esp + 0x10]
push edx
push 0x5918b574
push str.Combine
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
add esp, 0x14
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x59027724
mov dword [esp + 0x54], 0
jmp 0x59027735
push 0xa
push 0
push eax
call fcn.59088c32
add esp, 0xc
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0x58]
push eax
push ecx
push esi
lea edx, [esp + 0x40]
push ebx
push edx
call fcn.5901c790
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xd
call fcn.590a63d0
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 5
call fcn.590a6240
push 0x59188854
push 0x5918a23c
push esi
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.5901c620
add esp, 0x14
mov eax, dword [esp + 0x10]
mov byte [esp + 0x70], 0xe
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x590277ac
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx - 8]
test edx, edx
jne 0x590277ac
push 0xa
push 0
push eax
call fcn.59088c32
add esp, 0xc
jmp 0x590277c3
mov edx, dword [esp + 0x84]
push 0
mov eax, dword [edx]
mov eax, dword [eax + ebp]
push eax
call fcn.590c4640
add esp, 8
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x60]
mov esi, dword [edx]
mov dword [esp + 0x4c], eax
add ebp, esi
push ebp
call fcn.590a63d0
mov ebx, dword [esp + 0x90]
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
mov ebp, eax
mov dword [esp + 0x38], ebp
inc ebp
test ebp, ebp
jne 0x59027836
test esi, esi
je 0x59027829
mov ecx, eax
dec eax
test ecx, ecx
je 0x59027818
lea ebp, [eax + 1]
push 0
mov ecx, esi
call fcn.59061120
add esi, 0x24
dec ebp
jne 0x59027809
mov eax, dword [ebx]
push eax
call fcn.5913d2f9
add esp, 4
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
jmp 0x590279e3
test esi, esi
jne 0x5902789e
lea esi, [ebp + ebp*8]
shl esi, 2
push esi
call fcn.5913d2d0
mov ecx, esi
mov edi, eax
mov edx, ecx
mov dword [ebx], edi
xor eax, eax
mov ebx, edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x18], ebx
rep stosb byte es:[edi], al
lea esi, [ebp]
mov dword [esp + 0x40], ebx
test ebx, ebx
mov byte [esp + 0x70], 0xf
je 0x5902787d
mov ecx, ebx
call fcn.59027ad0
add ebx, 0x24
mov byte [esp + 0x70], 0xe
dec esi
mov dword [esp + 0x18], ebx
jne 0x59027869
mov eax, dword [esp + 0x90]
mov dword [eax + 8], ebp
mov dword [eax + 4], ebp
jmp 0x590279dc
mov edi, dword [ebx + 8]
cmp ebp, edi
jg 0x5902793c
cmp eax, ebp
jge 0x59027910
mov edx, ebp
sub edx, eax
lea eax, [eax + eax*8]
lea ecx, [edx + edx*8]
lea esi, [esi + eax*4]
shl ecx, 2
mov ebx, ecx
xor eax, eax
mov edi, esi
mov dword [esp + 0x18], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, edx
dec edx
test ecx, ecx
je 0x59027901
lea edi, [edx + 1]
mov bl, 0x10
mov dword [esp + 0x40], esi
test esi, esi
mov byte [esp + 0x70], bl
je 0x590278f2
mov ecx, esi
call fcn.59027ad0
add esi, 0x24
mov byte [esp + 0x70], 0xe
dec edi
mov dword [esp + 0x18], esi
jne 0x590278df
mov ebx, dword [esp + 0x90]
mov dword [ebx + 4], ebp
jmp 0x590279e3
jle 0x59027908
sub eax, ebp
lea edx, [ebp + ebp*8]
mov ecx, eax
dec eax
test ecx, ecx
lea esi, [esi + edx*4]
je 0x59027908
lea edi, [eax + 1]
push 0
mov ecx, esi
call fcn.59061120
add esi, 0x24
dec edi
jne 0x59027925
mov dword [ebx + 4], ebp
jmp 0x590279e3
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x59027967
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x5902795a
mov ecx, 4
jmp 0x59027967
cmp ecx, 0x400
jle 0x59027967
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebp, eax
jge 0x59027974
mov dword [esp + 0x18], eax
jmp 0x5902797a
mov dword [esp + 0x18], ebp
mov eax, ebp
lea edx, [eax + eax*8]
shl edx, 2
push edx
call fcn.5913d2d0
mov ebx, eax
mov eax, dword [esp + 0x94]
mov edi, ebx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
lea ecx, [ecx + ecx*8]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 4]
mov ecx, ebp
sub ecx, eax
lea edx, [eax + eax*8]
push ecx
lea eax, [ebx + edx*4]
push eax
call fcn.59061e60
mov esi, dword [esp + 0x9c]
mov eax, dword [esi]
push eax
call fcn.5913d2f9
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov dword [esi], ebx
mov dword [esi + 4], ebp
mov dword [esi + 8], ecx
mov ebx, dword [esp + 0x90]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
lea edx, [eax + eax*8]
mov eax, dword [ebx]
lea esi, [eax + edx*4]
mov dword [esi], ecx
mov edx, dword [esp + 0x48]
mov dword [esi + 4], edx
mov eax, dword [esp + 0x4c]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x50]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x5c]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x58]
push ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], eax
call fcn.590a63d0
lea edx, [esp + 0x60]
lea ecx, [esi + 0x1c]
push edx
call fcn.590a63d0
lea eax, [esp + 0x64]
lea ecx, [esi + 0x20]
push eax
call fcn.590a63d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 5
call fcn.590a0ec0
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 3
call fcn.590a6240
lea ecx, [esp + 0x64]
mov dword [esp + 0x70], 0x12
call fcn.590a6240
lea ecx, [esp + 0x60]
mov byte [esp + 0x70], 0x11
call fcn.590a6240
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], 0xffffffff
call fcn.590a6240
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x14]
inc eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x14], eax
cmp eax, edx
jl 0x59027442
push ebx
call fcn.5913d2f9
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret