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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x268
mov eax, dword [0x10304724]
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 + 0x10242370]
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 0x10058ae8
nop word [eax + eax]
lea ecx, [eax + 0x10240bf0]
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 0x10058acf
nop dword [eax]
mov byte [esp + 0x17], 0
cmp al, 0x20
jne 0x10058126
nop dword [eax]
inc ecx
cmp byte [ecx], 0x20
je 0x10058120
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.1005c6f0
add esp, 8
mov ecx, eax
cmp dword [esp + 0x80], 0
mov dword [esp + 0x34], ecx
je 0x100588cf
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 0x1005859e
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 0x10058588
push 1
push eax
push dword [esp + 0x8c]
call fcn.10008bf0
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 0x1005857c
mov edx, dword [esp + 0x90]
mov eax, edx
shr eax, 0x10
cmp ax, 2
jle 0x1005857c
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 0x10058347
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 0x1005832f
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
test byte [edx + 4], 3
mov edx, eax
jne 0x100582b2
cmp eax, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], edx
jg 0x1005832b
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 0x10058293
cmp dword [eax], ecx
jl 0x10058293
mov esi, dword [eax]
cmp dword [esp + 0x1c], esi
cmovg esi, dword [esp + 0x1c]
jmp 0x1005829e
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 0x10058273
mov dword [esp + 0x2c], esi
jmp 0x1005830b
cmp eax, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jg 0x1005832b
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 0x100582f2
cmp dword [eax], ecx
jg 0x100582f2
mov edi, dword [eax]
cmp dword [esp + 0x1c], edi
cmovl edi, dword [esp + 0x1c]
jmp 0x10058301
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 0x100582d2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], edi
cmp eax, dword [esp + 0x70]
je 0x1005832b
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x50], edx
jmp 0x1005832f
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 0x10058220
mov esi, dword [esp + 0x20]
test esi, esi
js 0x10058869
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 0x10058401
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 0x100583f7
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 0x1005842e
mov eax, dword [esp + 0x98]
mov dword [esp + 0x24], edi
mov al, byte [edi + eax]
and al, 3
cmp al, 1
jne 0x10058426
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 0x10058390
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 0x10058497
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 0x1005848d
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 0x100584c8
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 0x100584c0
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 0x10058432
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x24]
movzx eax, word [eax + 4]
test al, 0x10
je 0x100587f8
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 0x100587f8
mov eax, dword [esp + 0x50]
sub edx, edi
sub eax, dword [esp + 0x4c]
add edx, 2
cmp edx, eax
jg 0x100587f8
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 0x100585d6
cmp esi, edx
jne 0x10058554
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 0x10058190
mov ecx, dword [esp + 0x34]
cmp edx, 0x80000000
je 0x100588cf
cmp edx, 0x7fffffff
je 0x100588cf
cmp byte [esp + 0x17], 0
je 0x100588bf
mov eax, dword [esp + 0x64]
mov dword [esp + eax*4 + 0xc8], edx
inc eax
mov dword [esp + 0x64], eax
jmp 0x100588cf
cmp esi, edx
je 0x10058574
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 0x1005861e
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 0x10058659
xor al, al
mov byte [esp + 0x16], al
jmp 0x1005870c
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 0x100586a9
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 0x100586a9
xor al, al
mov byte [esp + 0x16], al
jmp 0x1005870c
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x7c]
mov al, byte [edi + eax]
and al, 3
cmp al, 1
jne 0x100586ca
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 0x10058708
cmp edx, dword [esp + 0x70]
jge 0x1005871f
mov al, byte [esp + 0x16]
cmp edi, dword [esp + 0x24]
je 0x100587f4
mov esi, dword [esp + 0x54]
jmp 0x100585f3
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 0x10058791
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 0x100587c2
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x98]
mov al, byte [edx + eax]
and al, 3
cmp al, 1
jne 0x100587aa
test esi, esi
cmovs esi, edx
mov eax, edx
cmp edi, dword [esp + 0x24]
je 0x100587df
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x30], edx
jmp 0x10058731
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x4c]
jle 0x100587d3
dec edx
mov dword [esp + 0x18], edx
jmp 0x100587db
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 0x10058800
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
test edx, edx
js 0x10058830
test eax, eax
js 0x10058830
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 0x10058830
mov byte [esp + 0x16], 0
jmp 0x10058869
mov edx, dword [esp + 0x98]
mov al, byte [edx + edi]
and al, 3
cmp al, 1
jne 0x10058854
mov eax, dword [esp + 0x18]
mov al, byte [edx + eax]
and al, 3
cmp al, 1
jne 0x10058854
mov byte [esp + 0x16], 0
jmp 0x10058869
mov edx, dword [esp + 0x44]
mov byte [esp + 0x16], 1
movzx eax, word [edx + 4]
test al, 4
jne 0x10058574
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
test byte [eax + 4], 1
je 0x100588a0
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 0x10058580
mov edx, dword [esp + 0x38]
cmp ecx, edx
jge 0x10058580
mov al, byte [esp + 0x16]
mov edx, ecx
mov dword [esp + 0x38], edx
mov byte [esp + 0x17], al
jmp 0x10058580
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 0x10058110
cmp dword [esp + 0x6c], 0
mov eax, dword [esp + 0x64]
jne 0x100588ec
test eax, eax
je 0x10058acf
mov ecx, 1
mov dword [esp + 0x1c], ecx
cmp eax, ecx
jbe 0x10058946
mov edi, dword [esp + 0x64]
nop dword [eax]
mov eax, ecx
test ecx, ecx
je 0x10058939
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0xc4]
mov edx, dword [esp + eax*4 + 0xc8]
cmp edx, ecx
jge 0x10058935
mov dword [esp + eax*4 + 0xc8], ecx
mov dword [esp + eax*4 + 0xc4], edx
sub eax, 1
jne 0x10058910
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, edi
jb 0x10058900
mov edi, dword [esp + 0x40]
mov ecx, 1
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x6c], ecx
jbe 0x100589a6
mov esi, dword [esp + 0x6c]
nop dword [eax]
mov eax, ecx
test ecx, ecx
je 0x10058999
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0x194]
mov edx, dword [esp + eax*4 + 0x198]
cmp edx, ecx
jge 0x10058995
mov dword [esp + eax*4 + 0x198], ecx
mov dword [esp + eax*4 + 0x194], edx
sub eax, 1
jne 0x10058970
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, esi
jb 0x10058960
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 0x100589e9
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 0x10058a15
mov ecx, dword [esp + 0x64]
shr eax, 1
mov eax, dword [esp + eax*4 + 0x198]
mov dword [esp + 0x28], eax
test ecx, ecx
jne 0x10058a05
mov dword [edx + 0xc], eax
mov dword [edx], eax
jmp 0x10058a19
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 0x10058a56
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 0x10058a56
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 0x10058a89
mov dword [edx + 0x20], 2
mov ecx, 2
movzx eax, word [edi + 4]
jmp 0x10058a8d
mov eax, dword [esp + 0x34]
movzx esi, ax
mov dword [esp + 0x34], esi
test al, 2
je 0x10058aa4
or ecx, 4
mov dword [edx + 0x20], ecx
movzx eax, word [edi + 4]
jmp 0x10058aa8
mov eax, dword [esp + 0x34]
movzx esi, ax
mov dword [esp + 0x34], esi
test al, 4
je 0x10058abf
or ecx, 8
mov dword [edx + 0x20], ecx
movzx eax, word [edi + 4]
jmp 0x10058ac3
mov eax, dword [esp + 0x34]
test al, 8
je 0x10058ad3
or ecx, 0x10
mov dword [edx + 0x20], ecx
jmp 0x10058ad3
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 8]
add edi, 8
mov dword [esp + 0x44], edi
cmp eax, 0x1469
jne 0x100580e0
mov ecx, dword [esp + 0x78]
mov edi, dword [ecx + 0xd8]
mov dword [esp + 0x34], edi
test edi, edi
je 0x10058bda
xor eax, eax
test edi, edi
je 0x10058b1f
add ecx, 0xdc
nop word [eax + eax]
mov dword [esp + eax*4 + 0x90], ecx
inc eax
add ecx, 0x24
cmp eax, edi
jb 0x10058b10
mov eax, 1
mov dword [esp + 0x1c], eax
cmp edi, eax
jbe 0x10058b90
nop dword [eax]
mov edx, eax
test eax, eax
je 0x10058b87
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0x8c]
test byte [eax + 0x20], 6
je 0x10058b51
mov esi, dword [eax]
jmp 0x10058b54
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + edx*4 + 0x90]
test byte [ecx + 0x20], 6
je 0x10058b65
mov edi, dword [ecx]
jmp 0x10058b68
mov edi, dword [ecx + 0xc]
cmp edi, esi
jge 0x10058b7f
mov dword [esp + edx*4 + 0x90], eax
mov dword [esp + edx*4 + 0x8c], ecx
sub edx, 1
jne 0x10058b40
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, edi
jb 0x10058b30
lea eax, [edi - 1]
xor esi, esi
test eax, eax
je 0x10058bda
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 0x10058bca
mov dword [edx], eax
mov eax, dword [esp + 0x78]
inc esi
mov eax, dword [eax + 0xd8]
dec eax
cmp esi, eax
jb 0x10058ba0
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
xor ecx, esp
call fcn.1011796f
mov esp, ebp
pop ebp
ret