Function at 0x100585f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x268
mov eax, dword [0x103ef7a4]
xor eax, esp
mov dword [esp + 0x264], eax
mov dword [esp + 0x7c], edx
mov edx, ecx
push esi
mov dword [esp + 0x84], edx
push edi
mov esi, dword [edx + 0x28]
lea eax, [edx + 0x245c]
mov dword [esp + 0x78], eax
mov eax, dword [edx]
mov eax, dword [eax + 0xc]
lea ecx, [eax*8 + 0x10242b30]
mov eax, 0x24924925
mul esi
mov eax, dword [ecx]
sub esi, edx
mov dword [esp + 0x44], ecx
shr esi, 1
add esi, edx
shr esi, 3
mov dword [esp + 0x8c], esi
cmp eax, 0x1469
je 0x10059068
nop word [eax + eax]
lea ecx, [eax + 0x102413b0]
mov dword [esp + 0x6c], 0
mov al, byte [ecx]
xor esi, esi
xor edi, edi
mov dword [esp + 0x64], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], edi
test al, al
je 0x1005904f
nop dword [eax]
mov byte [esp + 0x17], 0
cmp al, 0x20
jne 0x100586a6
nop dword [eax]
inc ecx
cmp byte [ecx], 0x20
je 0x100586a0
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.1005cc70
add esp, 8
mov ecx, eax
cmp dword [esp + 0x80], 0
mov dword [esp + 0x34], ecx
je 0x10058e4f
mov eax, dword [esp + 0x44]
mov edx, 0
mov dword [esp + 0x3c], 0
test byte [eax + 4], 1
setne dl
add edx, 0x7fffffff
cmp dword [esp + 0x80], 0
jbe 0x10058b1e
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], edx
nop
mov byte [esp + 0x16], 0
test eax, eax
je 0x10058b08
push 1
push eax
push dword [esp + 0x8c]
call fcn.10009160
mov ecx, dword [esp + 0x90]
add esp, 0xc
mov ecx, dword [ecx + 0x54]
movups xmm0, xmmword [ecx + 0x6c]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0xa0], ecx
movups xmmword [esp + 0x90], xmm0
test eax, eax
jne 0x10058afc
mov edx, dword [esp + 0x90]
mov eax, edx
shr eax, 0x10
cmp ax, 2
jle 0x10058afc
or eax, 0xffffffff
xor ecx, ecx
mov dword [esp + 0x20], eax
movsx eax, dx
xor edx, edx
mov dword [esp + 0x68], eax
test eax, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
jle 0x100588c7
nop dword [eax + eax]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x9c]
movsx edx, word [eax + edx*2]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x18]
jle 0x100588af
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
test byte [edx + 4], 3
mov edx, eax
jne 0x10058832
cmp eax, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], edx
jg 0x100588ab
mov eax, edx
lea eax, [eax*8 + 4]
add eax, dword [esp + 0x94]
cmp dword [esp + 0x20], 0
mov edx, dword [esp + 0x54]
mov dword [esp + 0x1c], esi
jl 0x10058813
cmp dword [eax], ecx
jl 0x10058813
mov esi, dword [eax]
cmp dword [esp + 0x1c], esi
cmovg esi, dword [esp + 0x1c]
jmp 0x1005881e
mov ecx, dword [eax]
cmp edi, ecx
mov dword [esp + 0x20], edx
cmovge edi, ecx
inc edx
add eax, 8
mov dword [esp + 0x54], edx
cmp edx, dword [esp + 0x24]
jle 0x100587f3
mov dword [esp + 0x2c], esi
jmp 0x1005888b
cmp eax, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jg 0x100588ab
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x40]
lea eax, [eax*8 + 4]
add eax, dword [esp + 0x94]
cmp dword [esp + 0x20], 0
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
jl 0x10058872
cmp dword [eax], ecx
jg 0x10058872
mov edi, dword [eax]
cmp dword [esp + 0x1c], edi
cmovl edi, dword [esp + 0x1c]
jmp 0x10058881
mov ecx, dword [eax]
cmp esi, ecx
mov dword [esp + 0x20], edx
cmovle esi, ecx
mov dword [esp + 0x2c], esi
inc edx
add eax, 8
cmp edx, dword [esp + 0x24]
jle 0x10058852
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], edi
cmp eax, dword [esp + 0x70]
je 0x100588ab
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x50], edx
jmp 0x100588af
mov edx, dword [esp + 0x24]
inc edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x28], edx
cmp edx, dword [esp + 0x68]
jl 0x100587a0
mov esi, dword [esp + 0x20]
test esi, esi
js 0x10058de9
mov eax, dword [esp + 0x94]
or edx, 0xffffffff
mov dword [esp + 0x24], esi
mov edi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x74], esi
mov eax, dword [eax + esi*8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
mov al, byte [eax + esi]
and al, 3
cmp al, 1
cmove edx, esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
nop dword [eax + eax]
cmp edi, dword [esp + 0x4c]
lea eax, [edi - 1]
mov dword [esp + 0x30], ecx
cmovle eax, dword [esp + 0x50]
mov edi, eax
mov eax, dword [esp + 0x94]
mov eax, dword [eax + edi*8 + 4]
mov edx, eax
sub dword [esp + 0x30], eax
sub edx, ecx
mov eax, dword [esp + 0x30]
cmovns eax, edx
mov dword [esp + 0x30], eax
cmp eax, 5
jle 0x10058981
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x94]
mov edx, dword [edx + edi*8]
sub edx, dword [eax + esi*8]
mov eax, dword [esp + 0x30]
jns 0x10058977
mov edx, dword [esp + 0x94]
mov edx, dword [edx + esi*8]
mov esi, dword [esp + 0x94]
sub edx, dword [esi + edi*8]
mov esi, dword [esp + 0x20]
lea eax, [eax + eax*4]
shl eax, 2
cmp edx, eax
jle 0x100589ae
mov eax, dword [esp + 0x98]
mov dword [esp + 0x24], edi
mov al, byte [edi + eax]
and al, 3
cmp al, 1
jne 0x100589a6
mov eax, dword [esp + 0x60]
test eax, eax
mov dword [esp + 0x5c], edi
cmovs eax, edi
mov dword [esp + 0x60], eax
cmp edi, esi
jne 0x10058910
mov edx, dword [esp + 0x74]
cmp edx, dword [esp + 0x50]
lea eax, [edx + 1]
mov edx, dword [esp + 0x94]
mov edi, ecx
cmovge eax, dword [esp + 0x4c]
mov dword [esp + 0x74], eax
mov eax, dword [edx + eax*8 + 4]
sub edi, eax
mov edx, eax
sub edx, ecx
cmovns edi, edx
mov dword [esp + 0x1c], edi
cmp edi, 5
jle 0x10058a17
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x94]
mov eax, dword [edx + eax*8]
mov edx, eax
sub edx, dword [edi + esi*8]
mov edi, dword [esp + 0x1c]
jns 0x10058a0d
mov edx, dword [esp + 0x94]
mov edx, dword [edx + esi*8]
sub edx, eax
lea eax, [edi + edi*4]
shl eax, 2
cmp edx, eax
jle 0x10058a48
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x18], edx
mov al, byte [edx + eax]
and al, 3
cmp al, 1
jne 0x10058a40
mov eax, dword [esp + 0x5c]
test eax, eax
mov dword [esp + 0x60], edx
cmovs eax, edx
mov dword [esp + 0x5c], eax
cmp edx, esi
jne 0x100589b2
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x24]
movzx eax, word [eax + 4]
test al, 0x10
je 0x10058d78
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x94]
mov edx, dword [eax + 0x28]
mov eax, 0x51eb851f
mov edi, dword [esi + edi*8]
mov dword [esp + 0x68], edx
mul edx
mov eax, edx
mov edx, dword [esp + 0x18]
shr eax, 3
mov dword [esp + 0x70], eax
mov eax, dword [esi + edx*8]
mov esi, eax
sub esi, edi
sub edi, eax
test esi, esi
cmovns edi, esi
cmp edi, dword [esp + 0x70]
mov edi, dword [esp + 0x24]
jge 0x10058d78
mov eax, dword [esp + 0x50]
sub edx, edi
sub eax, dword [esp + 0x4c]
add edx, 2
cmp edx, eax
jg 0x10058d78
shr dword [esp + 0x68], 2
xor edx, edx
mov edi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x20]
mov esi, edx
mov dword [esp + 0x30], eax
cmp esi, dword [esp + 0x4c]
lea eax, [esi - 1]
cmovle eax, dword [esp + 0x50]
mov esi, eax
mov eax, dword [esp + 0x94]
mov eax, dword [eax + esi*8]
cmp eax, edi
jne 0x10058b56
cmp esi, edx
jne 0x10058ad4
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x3c], ecx
cmp ecx, dword [esp + 0x80]
jb 0x10058710
mov ecx, dword [esp + 0x34]
cmp edx, 0x80000000
je 0x10058e4f
cmp edx, 0x7fffffff
je 0x10058e4f
cmp byte [esp + 0x17], 0
je 0x10058e3f
mov eax, dword [esp + 0x64]
mov dword [esp + eax*4 + 0xc8], edx
inc eax
mov dword [esp + 0x64], eax
jmp 0x10058e4f
cmp esi, edx
je 0x10058af4
cmp eax, edi
mov eax, dword [esp + 0x18]
mov esi, eax
mov edi, eax
setl byte [esp + 0x5a]
mov dword [esp + 0x54], esi
xor al, al
mov byte [esp + 0x16], al
test al, al
jne 0x10058b9e
mov eax, dword [esp + 0x98]
or edx, 0xffffffff
mov esi, edi
mov byte [esp + 0x16], 1
mov dword [esp + 0x54], esi
mov al, byte [edi + eax]
and al, 3
cmp al, 1
cmove edx, edi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x30], edx
cmp edi, dword [esp + 0x50]
lea eax, [edi + 1]
mov edx, ecx
cmovge eax, dword [esp + 0x4c]
mov edi, eax
mov eax, dword [esp + 0x94]
lea eax, [eax + esi*8]
mov esi, dword [eax + 4]
mov dword [esp + 0x28], eax
mov eax, esi
sub eax, ecx
sub edx, esi
cmovns eax, edx
cmp eax, dword [esp + 0x68]
jle 0x10058bd9
xor al, al
mov byte [esp + 0x16], al
jmp 0x10058c8c
mov eax, dword [esp + 0x94]
mov eax, dword [eax + edi*8 + 4]
mov edx, eax
sub edx, esi
sub esi, eax
test edx, edx
cmovns esi, edx
mov dword [esp + 0x1c], esi
cmp esi, 5
jle 0x10058c29
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x94]
mov esi, dword [edx]
mov eax, dword [eax + edi*8]
mov edx, eax
sub edx, esi
sub esi, eax
mov eax, dword [esp + 0x1c]
test edx, edx
cmovns esi, edx
lea eax, [eax + eax*4]
shl eax, 2
cmp esi, eax
jg 0x10058c29
xor al, al
mov byte [esp + 0x16], al
jmp 0x10058c8c
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x7c]
mov al, byte [edi + eax]
and al, 3
cmp al, 1
jne 0x10058c4a
test esi, esi
mov dword [esp + 0x30], edi
cmovs esi, edi
mov dword [esp + 0x7c], esi
mov eax, dword [esp + 0x94]
mov edx, dword [eax + edi*8]
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
cmp eax, edx
mov dword [esp + 0x20], eax
mov eax, edx
setl byte [esp + 0x5b]
sub eax, dword [esp + 0x20]
sub dword [esp + 0x20], edx
test eax, eax
mov edx, dword [esp + 0x20]
cmovns edx, eax
mov al, byte [esp + 0x5a]
cmp byte [esp + 0x5b], al
jne 0x10058c88
cmp edx, dword [esp + 0x70]
jge 0x10058c9f
mov al, byte [esp + 0x16]
cmp edi, dword [esp + 0x24]
je 0x10058d74
mov esi, dword [esp + 0x54]
jmp 0x10058b73
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x94]
lea eax, [ecx + eax*8]
mov dword [esp + 0x68], eax
cmp edi, dword [esp + 0x50]
lea eax, [edi + 1]
cmovge eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov edi, eax
mov eax, dword [ecx + eax*8 + 4]
mov edx, eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
sub edx, ecx
sub ecx, dword [esp + 0x70]
test edx, edx
cmovns ecx, edx
cmp ecx, 5
jle 0x10058d11
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx + eax*8]
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
mov ecx, eax
sub ecx, edx
sub edx, eax
mov eax, dword [esp + 0x1c]
test ecx, ecx
cmovns edx, ecx
lea eax, [eax + eax*4]
shl eax, 2
cmp edx, eax
jle 0x10058d42
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x98]
mov al, byte [edx + eax]
and al, 3
cmp al, 1
jne 0x10058d2a
test esi, esi
cmovs esi, edx
mov eax, edx
cmp edi, dword [esp + 0x24]
je 0x10058d5f
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x30], edx
jmp 0x10058cb1
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x4c]
jle 0x10058d53
dec edx
mov dword [esp + 0x18], edx
jmp 0x10058d5b
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x54]
mov edi, edx
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx + edx*8 + 4]
mov edx, esi
jmp 0x10058d80
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
test edx, edx
js 0x10058db0
test eax, eax
js 0x10058db0
mov esi, dword [esp + 0x94]
mov eax, dword [esi + eax*8]
mov esi, dword [esi + edx*8]
mov edx, eax
sub edx, esi
sub esi, eax
test edx, edx
cmovns esi, edx
cmp esi, dword [esp + 0x8c]
jle 0x10058db0
mov byte [esp + 0x16], 0
jmp 0x10058de9
mov edx, dword [esp + 0x98]
mov al, byte [edx + edi]
and al, 3
cmp al, 1
jne 0x10058dd4
mov eax, dword [esp + 0x18]
mov al, byte [edx + eax]
and al, 3
cmp al, 1
jne 0x10058dd4
mov byte [esp + 0x16], 0
jmp 0x10058de9
mov edx, dword [esp + 0x44]
mov byte [esp + 0x16], 1
movzx eax, word [edx + 4]
test al, 4
jne 0x10058af4
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
test byte [eax + 4], 1
je 0x10058e20
cmp ecx, dword [esp + 0x38]
movzx eax, byte [esp + 0x17]
movzx edx, byte [esp + 0x16]
cmovle ecx, dword [esp + 0x38]
cmovle edx, eax
mov byte [esp + 0x17], dl
mov edx, ecx
mov dword [esp + 0x38], edx
jmp 0x10058b00
mov edx, dword [esp + 0x38]
cmp ecx, edx
jge 0x10058b00
mov al, byte [esp + 0x16]
mov edx, ecx
mov dword [esp + 0x38], edx
mov byte [esp + 0x17], al
jmp 0x10058b00
mov eax, dword [esp + 0x6c]
mov dword [esp + eax*4 + 0x198], edx
inc eax
mov dword [esp + 0x6c], eax
mov al, byte [ecx]
test al, al
jne 0x10058690
cmp dword [esp + 0x6c], 0
mov eax, dword [esp + 0x64]
jne 0x10058e6c
test eax, eax
je 0x1005904f
mov ecx, 1
mov dword [esp + 0x1c], ecx
cmp eax, ecx
jbe 0x10058ec6
mov edi, dword [esp + 0x64]
nop dword [eax]
mov eax, ecx
test ecx, ecx
je 0x10058eb9
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0xc4]
mov edx, dword [esp + eax*4 + 0xc8]
cmp edx, ecx
jge 0x10058eb5
mov dword [esp + eax*4 + 0xc8], ecx
mov dword [esp + eax*4 + 0xc4], edx
sub eax, 1
jne 0x10058e90
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, edi
jb 0x10058e80
mov edi, dword [esp + 0x40]
mov ecx, 1
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x6c], ecx
jbe 0x10058f26
mov esi, dword [esp + 0x6c]
nop dword [eax]
mov eax, ecx
test ecx, ecx
je 0x10058f19
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0x194]
mov edx, dword [esp + eax*4 + 0x198]
cmp edx, ecx
jge 0x10058f15
mov dword [esp + eax*4 + 0x198], ecx
mov dword [esp + eax*4 + 0x194], edx
sub eax, 1
jne 0x10058ef0
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, esi
jb 0x10058ee0
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x78]
mov ecx, dword [edx + 0xd8]
lea eax, [ecx + ecx*8]
lea edx, [edx + eax*4]
lea eax, [ecx + 1]
add edx, 0xdc
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x1c], edx
mov dword [ecx + 0xd8], eax
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x10058f69
mov eax, dword [esp + 0x64]
shr eax, 1
mov eax, dword [esp + eax*4 + 0xc8]
mov dword [edx + 0xc], eax
mov dword [edx], eax
jmp 0x10058f95
mov ecx, dword [esp + 0x64]
shr eax, 1
mov eax, dword [esp + eax*4 + 0x198]
mov dword [esp + 0x28], eax
test ecx, ecx
jne 0x10058f85
mov dword [edx + 0xc], eax
mov dword [edx], eax
jmp 0x10058f99
shr ecx, 1
mov dword [edx], eax
mov eax, dword [esp + ecx*4 + 0xc8]
mov dword [edx + 0xc], eax
mov eax, dword [edx]
mov dword [esp + 0x28], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x34], ecx
cmp ecx, eax
je 0x10058fd6
xor ecx, ecx
cmp dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
setg cl
test byte [eax + 4], 3
mov eax, 0
setne al
cmp ecx, eax
je 0x10058fd6
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x34]
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
mov dword [edx + 0xc], eax
mov dword [edx], eax
mov dword [edx + 0x1c], edi
mov edi, dword [esp + 0x44]
mov dword [edx + 0x18], esi
mov dword [edx + 0x20], 0
movzx eax, word [edi + 4]
mov ecx, eax
mov dword [esp + 0x34], ecx
xor ecx, ecx
test al, 1
je 0x10059009
mov dword [edx + 0x20], 2
mov ecx, 2
movzx eax, word [edi + 4]
jmp 0x1005900d
mov eax, dword [esp + 0x34]
movzx esi, ax
mov dword [esp + 0x34], esi
test al, 2
je 0x10059024
or ecx, 4
mov dword [edx + 0x20], ecx
movzx eax, word [edi + 4]
jmp 0x10059028
mov eax, dword [esp + 0x34]
movzx esi, ax
mov dword [esp + 0x34], esi
test al, 4
je 0x1005903f
or ecx, 8
mov dword [edx + 0x20], ecx
movzx eax, word [edi + 4]
jmp 0x10059043
mov eax, dword [esp + 0x34]
test al, 8
je 0x10059053
or ecx, 0x10
mov dword [edx + 0x20], ecx
jmp 0x10059053
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 8]
add edi, 8
mov dword [esp + 0x44], edi
cmp eax, 0x1469
jne 0x10058660
mov ecx, dword [esp + 0x78]
mov edi, dword [ecx + 0xd8]
mov dword [esp + 0x34], edi
test edi, edi
je 0x1005915a
xor eax, eax
test edi, edi
je 0x1005909f
add ecx, 0xdc
nop word [eax + eax]
mov dword [esp + eax*4 + 0x90], ecx
inc eax
add ecx, 0x24
cmp eax, edi
jb 0x10059090
mov eax, 1
mov dword [esp + 0x1c], eax
cmp edi, eax
jbe 0x10059110
nop dword [eax]
mov edx, eax
test eax, eax
je 0x10059107
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0x8c]
test byte [eax + 0x20], 6
je 0x100590d1
mov esi, dword [eax]
jmp 0x100590d4
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + edx*4 + 0x90]
test byte [ecx + 0x20], 6
je 0x100590e5
mov edi, dword [ecx]
jmp 0x100590e8
mov edi, dword [ecx + 0xc]
cmp edi, esi
jge 0x100590ff
mov dword [esp + edx*4 + 0x90], eax
mov dword [esp + edx*4 + 0x8c], ecx
sub edx, 1
jne 0x100590c0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, edi
jb 0x100590b0
lea eax, [edi - 1]
xor esi, esi
test eax, eax
je 0x1005915a
nop dword [eax]
mov eax, dword [esp + esi*4 + 0x90]
mov ecx, dword [esp + esi*4 + 0x94]
test byte [eax + 0x20], 6
lea edx, [eax + 0xc]
cmove edx, eax
test byte [ecx + 0x20], 6
lea eax, [ecx + 0xc]
cmove eax, ecx
mov eax, dword [eax]
cmp dword [edx], eax
jle 0x1005914a
mov dword [edx], eax
mov eax, dword [esp + 0x78]
inc esi
mov eax, dword [eax + 0xd8]
dec eax
cmp esi, eax
jb 0x10059120
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
xor ecx, esp
call fcn.10117c9f
mov esp, ebp
pop ebp
ret