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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x40], eax
movzx eax, word [ebx]
cmp ax, 0x40
jle 0x1005bc30
push 0x40
push str.at_most__d_tables_in_a_join
call fcn.100254a9
pop ecx
jmp 0x1005c26e
test byte [ebp + 0x18], 0x80
je 0x1005bc40
mov dword [esp + 0x20], 1
jmp 0x1005bc45
cwde
mov dword [esp + 0x20], eax
mov eax, edi
mov edi, dword [esp + 0x20]
mov eax, dword [eax]
imul edi, edi, 0x50
add edi, 0x37
and edi, 0xfffffff8
lea ecx, [edi + 0x264]
push ecx
mov dword [esp + 0x30], eax
call fcn.10023b57
mov esi, eax
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x1e], 0
pop ecx
mov dword [esp + 0x1c], esi
je 0x1005bc80
push esi
push eax
call fcn.100239b6
jmp 0x1005bc2a
mov eax, dword [esp + 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 8], ebx
call fcn.10035e33
mov dword [esi + 0x14], eax
mov ax, word [ebp + 0x18]
mov word [esi + 4], ax
mov eax, dword [ebp + 8]
add edi, esi
mov dword [esi + 0x1c], edi
fld qword [eax + 0x1c0]
push 0x104
fstp qword [esi + 0x20]
lea eax, [edi + 0x160]
push 0
push eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x30], eax
call fcn.1006c610
mov ecx, dword [ebp + 8]
add esp, 0xc
push dword [esp + 0x24]
mov eax, edi
call fcn.10058536
mov eax, dword [ebp + 8]
cmp dword [eax + 0x15c], 0
pop ecx
jne 0x1005bd18
mov eax, dword [eax]
test byte [eax + 0xc], 0x40
jne 0x1005bd18
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
and dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x70], 0x10042e63
call fcn.1003f38f
pop ecx
pop ecx
push 0x45
push dword [ebp + 0x10]
push edi
call fcn.10058665
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x1005bd56
cmp dword [esp + 0x20], 0
je 0x1005bd43
push dword [ebp + 0x10]
push 3
pop eax
call fcn.10041646
pop ecx
test eax, eax
je 0x1005bd56
push 8
push dword [esi + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.1004328d
add esp, 0x10
and dword [esp + 0x28], 0
xor eax, eax
cmp ax, word [ebx]
jge 0x1005bdb6
lea eax, [ebx + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0xc]
mov dword [eax + ecx*4 + 4], edx
inc dword [eax]
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x1005bda4
test byte [ecx + 0x22], 0x10
je 0x1005bda4
mov ecx, dword [esp + 0x28]
xor eax, eax
inc eax
xor edx, edx
call fcn.10082ba0
or dword [edi + 8], eax
or dword [edi + 0xc], edx
mov eax, dword [esp + 0x24]
movsx ecx, word [ebx]
inc dword [esp + 0x28]
add dword [esp + 0xc], 0x38
cmp dword [esp + 0x28], ecx
jl 0x1005bd6d
push ebx
call fcn.100589e7
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x1e], 0
pop ecx
jne 0x1005c257
mov eax, dword [esp + 0x20]
or dword [esp + 0x10], 0xffffffff
or dword [esp + 0x14], 0xffffffff
or dword [esp + 0x5c], 0xffffffff
and dword [esp + 0x30], 0
and dword [esp + 0x28], 0
lea ebx, [esi + 0x30]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x34], ebx
test eax, eax
jle 0x1005c151
dec eax
mov dword [esp + 0x78], eax
or dword [esp + 0x3c], 0xffffffff
fld qword [0x1009a940]
xor eax, eax
push 0xa
pop ecx
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
fstp qword [esp + 0x98]
mov eax, dword [esp + 0x30]
xor ecx, ecx
xor edx, edx
cmp eax, dword [esp + 0x78]
mov dword [esp + 0x58], ecx
setl dl
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
cmp edx, ecx
mov dword [esp + 0xc], edx
jl 0x1005c081
jmp 0x1005be4d
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x3c], 0
jge 0x1005c081
mov edx, dword [ebp + 0xc]
mov ecx, eax
imul ecx, ecx, 0x38
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
lea ebx, [ecx + edx + 8]
jge 0x1005c077
mov eax, dword [esp + 0x30]
imul eax, eax, 0x50
lea eax, [eax + esi + 0x78]
mov dword [esp + 0x4c], eax
test byte [ebx + 0x15], 0xa
push 0
pop eax
setne al
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x38], eax
je 0x1005bea4
cmp dword [esp + 0x44], 0
jne 0x1005c077
push dword [ebx + 0x18]
mov eax, dword [esp + 0x28]
call fcn.100586a4
pop ecx
mov ecx, edx
mov edi, eax
and eax, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
and ecx, dword [esp + 0x14]
or eax, ecx
jne 0x1005bedc
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x30]
jne 0x1005c05d
inc dword [esp + 0x30]
jmp 0x1005c05d
xor edx, edx
cmp dword [esp + 0xc], edx
je 0x1005beec
mov eax, dword [esp + 0x6c]
mov ecx, edi
jmp 0x1005bef4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
cmp dword [esp + 0x28], edx
jne 0x1005bf09
mov eax, dword [ebp + 0x14]
cmp eax, edx
je 0x1005bf09
mov eax, dword [eax]
jmp 0x1005bf0b
xor eax, eax
cmp dword [ebx + 0x34], edx
jne 0x1005bf14
inc dword [esp + 0x58]
mov edx, dword [ebx + 0xc]
test byte [edx + 0x22], 0x10
lea edx, [esp + 0xa8]
je 0x1005bf49
push dword [esp + 0x4c]
push edx
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x78]
push ecx
push ebx
push dword [esp + 0x68]
push dword [ebp + 8]
call fcn.1005a08e
add esp, 0x28
jmp 0x1005bf68
push edx
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x74]
push ecx
push ebx
push dword [esp + 0x64]
push dword [ebp + 8]
call fcn.1005a254
add esp, 0x24
cmp dword [esp + 0xc], 0
je 0x1005bf88
test dword [esp + 0xa8], 0x100f3000
jne 0x1005bf88
mov eax, dword [esp + 0x6c]
or dword [esp + 0x50], edi
or dword [esp + 0x54], eax
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
and eax, dword [esp + 0x10]
and ecx, dword [esp + 0x14]
or eax, ecx
jne 0x1005c056
xor edx, edx
cmp dword [esp + 0x3c], edx
jl 0x1005bfd9
and edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x6c]
and ecx, dword [esp + 0x54]
mov eax, edi
or eax, ecx
jne 0x1005bfd9
mov eax, 0x100f3000
test dword [esp + 0x80], eax
je 0x1005bfde
test dword [esp + 0xa8], eax
je 0x1005c056
jmp 0x1005bfde
mov eax, 0x100f3000
cmp dword [esp + 0x58], edx
je 0x1005bff2
cmp dword [ebx + 0x34], edx
je 0x1005bff2
test dword [esp + 0xa8], eax
je 0x1005c056
cmp dword [esp + 0x3c], edx
jl 0x1005c037
fld qword [esp + 0x98]
fcomp qword [esp + 0xc0]
fnstsw ax
test ah, 0x41
je 0x1005c037
fld qword [esp + 0x98]
fcomp qword [esp + 0xc0]
fnstsw ax
test ah, 1
jne 0x1005c056
fld qword [esp + 0x88]
fcomp qword [esp + 0xb0]
fnstsw ax
test ah, 0x41
jne 0x1005c056
mov eax, dword [esp + 0x38]
push 0xa
pop ecx
lea esi, [esp + 0xa8]
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x44], 0
jne 0x1005c077
inc dword [esp + 0x38]
mov eax, dword [esp + 0x38]
add dword [esp + 0x4c], 0x50
add ebx, 0x38
cmp eax, dword [esp + 0x20]
jl 0x1005be81
dec dword [esp + 0xc]
jns 0x1005be49
mov edx, dword [esp + 0x80]
test edx, 0x1000000
je 0x1005c096
mov eax, dword [ebp + 0x14]
and dword [eax], 0
mov eax, dword [esp + 0x34]
and dword [esp + 0x5c], edx
push 6
pop ecx
lea esi, [esp + 0x80]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
test edx, 0x200f0000
je 0x1005c0c2
mov ecx, dword [edi + 0x44]
mov dword [eax + 0x20], ecx
inc dword [edi + 0x44]
jmp 0x1005c0c6
or dword [eax + 0x20], 0xffffffff
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0x38
lea esi, [eax + ecx]
push dword [esi + 0x20]
mov eax, dword [esp + 0x28]
call fcn.100586a4
not eax
fld1
and dword [esp + 0x14], eax
fcomp qword [esp + 0x8c]
mov al, byte [esp + 0x40]
pop ecx
mov ecx, dword [esp + 0x34]
mov byte [ecx + 0x34], al
not edx
and dword [esp + 0x14], edx
fnstsw ax
test ah, 0x41
jp 0x1005c11a
fld qword [edi + 0x1c0]
fmul qword [esp + 0x88]
fstp qword [edi + 0x1c0]
mov esi, dword [esi + 0x3c]
test esi, esi
je 0x1005c132
test dword [esp + 0x80], 0xf0000
je 0x1005c245
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
add dword [esp + 0x34], 0x50
cmp eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jl 0x1005be00
mov ebx, dword [esp + 0x7c]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
jne 0x1005c257
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x1e], 0
jne 0x1005c257
mov eax, dword [esp + 0x5c]
and eax, 0x4000000
je 0x1005c181
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1005c181
and dword [ecx], 0
test byte [ebp + 0x18], 4
je 0x1005c195
test eax, eax
je 0x1005c195
and dword [ebx], 0xff7fffff
mov byte [esi + 6], 1
mov eax, dword [ebp + 8]
or esi, 0xffffffff
call fcn.10048a81
fld1
mov eax, dword [esp + 0x1c]
fstp qword [eax + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], ebx
test eax, eax
jle 0x1005c38c
mov dword [esp + 0x44], eax
movzx eax, byte [ebx + 0x34]
fld qword [ebx + 8]
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0x38
lea edi, [eax + ecx + 8]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x18]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
fmul qword [ecx + 0x28]
fstp qword [ecx + 0x28]
mov esi, dword [eax + 0x44]
mov ecx, dword [esp + 0x2c]
call fcn.10050960
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
test byte [eax + 0x22], 2
jne 0x1005c301
xor edx, edx
cmp dword [eax + 0x1c], edx
jne 0x1005c301
mov ecx, dword [ebx]
test ecx, 0x8000000
je 0x1005c278
push 0xfffffffffffffff6
push dword [esp + 0x30]
call fcn.10057938
pop ecx
push eax
push edx
push edx
push dword [edi + 0x18]
push 0x7f
push dword [esp + 0x58]
call fcn.10035d99
add esp, 0x1c
jmp 0x1005c301
push dword [esi]
push str.cannot_use_index:__s
call fcn.100254a9
pop ecx
pop ecx
mov esi, dword [esp + 0x1c]
fld qword [esi + 0x20]
mov eax, dword [ebp + 8]
push dword [esp + 0x2c]
fstp qword [eax + 0x1c0]
mov ebx, esi
call fcn.1005bb75
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, 0x800000
jne 0x1005c2e8
test byte [ebp + 0x18], 0x10
jne 0x1005c2e8
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
xor eax, eax
cmp byte [ecx + 6], al
setne al
add eax, 0x26
push eax
push dword [esp + 0x10]
push dword [edi + 0x18]
push dword [ebp + 8]
call fcn.1004c4d4
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp byte [eax + 6], 0
jne 0x1005c301
mov eax, esi
cmp dword [eax + 8], 0x40
jge 0x1005c301
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
xor edx, edx
jmp 0x1005c2cf
shrd eax, ecx, 1
shr ecx, 1
inc edx
mov esi, eax
or esi, ecx
jne 0x1005c2c8
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x1c]
push 0xfffffffffffffff2
push edx
dec eax
push ecx
call fcn.10036166
jmp 0x1005c2fe
push dword [eax]
mov ebx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
push edx
push dword [esp + 0x14]
call fcn.10045815
mov ebx, dword [esp + 0x40]
add esp, 0xc
mov eax, dword [ebx]
test eax, 0x20000000
je 0x1005c325
push ebx
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
push dword [esp + 0x58]
push dword [ebp + 8]
call fcn.10059b1b
add esp, 0x18
jmp 0x1005c353
test eax, 0xf0000
je 0x1005c353
mov esi, dword [ebx + 0x10]
push esi
push dword [ebp + 8]
call fcn.10048dc7
push 0xfffffffffffffff0
push eax
push dword [esp + 0x1c]
push dword [esi + 0x14]
push dword [ebx + 0x20]
push 0x26
push dword [esp + 0x60]
call fcn.10035d99
add esp, 0x24
mov esi, dword [esp + 0xc]
mov eax, dword [ebp + 8]
call fcn.10048a81
mov eax, dword [esp + 0x48]
push dword [edi + 0x18]
mov eax, dword [eax + 4]
call fcn.100586a4
not eax
and dword [esp + 0x14], eax
not edx
and dword [esp + 0x18], edx
add ebx, 0x50
dec dword [esp + 0x48]
pop ecx
mov dword [esp + 0x34], ebx
jne 0x1005c1c5
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x1e], 0
jne 0x1005c253
or dword [esp + 0x10], 0xffffffff
or dword [esp + 0x14], 0xffffffff
xor edi, edi
cmp dword [esp + 0x20], edi
mov ebx, ecx
jle 0x1005c406
lea esi, [ebx + 0x5c]
push dword [ebp + 0x18]
movzx eax, byte [esi + 8]
push eax
push edi
lea eax, [esi - 0x2c]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.1005ad5a
add esp, 0x14
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [ebp + 0x18]
push edi
push ebx
call fcn.1005af8a
add esp, 0x14
mov dword [esp + 0x10], eax
mov eax, dword [esi]
inc edi
add esi, 0x50
cmp edi, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov dword [ebx + 0x10], eax
jl 0x1005c3bf
mov eax, ebx
jmp 0x1005c271