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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], ecx
movzx ecx, word [edx]
push ebx
push esi
push edi
cmp cx, 0x40
jle 0x1005ebbe
push 0x40
push str.at_most__d_tables_in_a_join
push eax
call fcn.100062b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp + 0x18], 0x80
mov edi, 1
jne 0x1005ebcc
movsx edi, cx
mov esi, dword [eax]
mov dword [esp + 0x28], edi
lea edi, [edi + edi*4]
shl edi, 4
add edi, 0x37
and edi, 0xfffffff8
lea ecx, [edi + 0x264]
mov dword [esp + 0x3c], esi
call fcn.10004360
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x1005ec09
lea eax, [edi + 0x264]
push eax
push 0
push ebx
call fcn.10067e10
add esp, 0xc
cmp byte [esi + 0x1e], 0
je 0x1005ec22
push ebx
push esi
call fcn.10004120
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [ebx], esi
mov dword [ebx + 8], ecx
call fcn.1001fdc0
mov dx, word [ebp + 0x18]
add edi, ebx
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], edi
mov word [ebx + 4], dx
fld qword [esi + 0x1c0]
push 0x104
fstp qword [ebx + 0x20]
lea esi, [edi + 0x160]
push 0
push esi
mov dword [esp + 0x50], edi
call fcn.10067e10
mov eax, dword [ebp + 8]
xor ecx, ecx
lea edx, [edi + 0x20]
add esp, 0xc
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], 8
mov dword [edi + 0x1c], edx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
cmp dword [eax + 0x15c], ecx
jne 0x1005ecc7
mov ecx, dword [eax]
test byte [ecx + 0xc], 0x40
jne 0x1005ecc7
mov edx, eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x60], 0x10032110
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], edx
call fcn.1002c580
add esp, 8
mov edx, dword [ebp + 0x10]
push 0x45
push edx
push edi
call fcn.10059a70
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x1005ed05
cmp dword [esp + 0x28], 0
je 0x1005ecef
mov eax, dword [ebp + 0x10]
call fcn.1002f6a0
test eax, eax
je 0x1005ed05
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push 8
push eax
push ecx
push edx
call fcn.10032730
add esp, 0x10
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0x38], 0
cmp ax, word [ecx]
jge 0x1005ed63
lea ebx, [ecx + 0x14]
lea ebx, [ebx]
mov eax, dword [ebx + 0xc]
mov edx, dword [esi]
mov dword [esi + edx*4 + 4], eax
inc dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x1005ed50
test byte [eax + 0x22], 0x10
je 0x1005ed50
mov ecx, dword [esp + 0x38]
mov eax, 1
xor edx, edx
call fcn.1006cbb0
or dword [edi + 8], eax
or dword [edi + 0xc], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x38]
movsx edx, word [ecx]
inc eax
add ebx, 0x38
mov dword [esp + 0x38], eax
cmp eax, edx
jl 0x1005ed20
mov esi, dword [edi + 0x14]
dec esi
js 0x1005ed7e
mov ebx, dword [ebp + 0xc]
lea esp, [esp]
push esi
push edi
push ebx
call fcn.1005ac60
add esp, 0xc
dec esi
jns 0x1005ed70
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x1e], 0
jne 0x1005f215
or eax, 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
xor ecx, ecx
add eax, 0x30
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x28], ecx
jle 0x1005f1be
lea ebx, [ebx]
xor eax, eax
fld qword [0x10079310]
mov esi, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
fstp qword [esp + 0x80]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x28]
xor ecx, ecx
xor edx, edx
dec eax
cmp dword [esp + 0x34], eax
mov dword [esp + 0x24], 0xffffffff
setl dl
mov dword [esp + 0x68], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov eax, edx
mov dword [esp + 0x50], eax
cmp eax, ecx
jl 0x1005f081
cmp dword [esp + 0x24], 0
jge 0x1005f07d
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
lea ecx, [eax*8]
sub ecx, eax
mov ebx, eax
lea ecx, [edx + ecx*8 + 8]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x20], ecx
cmp eax, dword [esp + 0x28]
jge 0x1005f073
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x2c]
add edx, edx
lea ecx, [eax + edx*8 + 0x78]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x20]
test byte [edx + 0x15], 0xa
mov eax, 0
setne al
mov dword [esp + 0x40], eax
cmp ebx, dword [esp + 0x34]
je 0x1005ee9d
test eax, eax
jne 0x1005f073
mov esi, dword [esp + 0x44]
xor ecx, ecx
cmp dword [esi + 0x160], ecx
jle 0x1005eec8
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x18]
lea eax, [esi + 0x164]
cmp dword [eax], edx
je 0x1005eef1
inc ecx
add eax, 4
cmp ecx, dword [esi + 0x160]
jl 0x1005eeb8
xor esi, esi
xor edi, edi
mov edx, dword [esp + 0x18]
mov ecx, edi
and ecx, dword [esp + 0x1c]
mov eax, esi
and eax, edx
or eax, ecx
jne 0x1005ef03
cmp ebx, dword [esp + 0x34]
jne 0x1005f05a
inc dword [esp + 0x34]
jmp 0x1005f05a
mov eax, 1
xor edx, edx
call fcn.1006cbb0
mov esi, eax
mov edi, edx
jmp 0x1005eecc
cmp dword [esp + 0x50], 0
je 0x1005ef10
mov ecx, esi
mov edx, edi
jmp 0x1005ef16
mov ecx, edx
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x38], 0
jne 0x1005ef28
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1005ef28
mov eax, dword [eax]
jmp 0x1005ef2a
xor eax, eax
mov ebx, dword [esp + 0x20]
cmp dword [ebx + 0x34], 0
jne 0x1005ef38
inc dword [esp + 0x54]
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx + 0xc]
test byte [ebx + 0x22], 0x10
je 0x1005ef77
mov ebx, dword [esp + 0x48]
push ebx
lea ebx, [esp + 0x94]
push ebx
mov ebx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
push edx
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x60]
push ebx
push ecx
push edx
call fcn.1005c640
add esp, 0x28
jmp 0x1005efa2
lea ebx, [esp + 0x90]
push ebx
mov ebx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
push edx
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x5c]
push ebx
push ecx
push edx
call fcn.1005c860
add esp, 0x24
cmp dword [esp + 0x50], 0
mov edx, dword [esp + 0x90]
je 0x1005efc0
test edx, 0x100f3000
jne 0x1005efc0
or dword [esp + 0x58], esi
or dword [esp + 0x5c], edi
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
and eax, dword [esp + 0x18]
and ecx, dword [esp + 0x1c]
or eax, ecx
jne 0x1005f04f
mov ecx, dword [esp + 0x24]
test ecx, ecx
js 0x1005eff8
and esi, dword [esp + 0x58]
and edi, dword [esp + 0x5c]
mov eax, esi
or eax, edi
jne 0x1005eff8
test edx, 0x100f3000
je 0x1005f04f
cmp dword [esp + 0x54], 0
je 0x1005f00d
cmp dword [ebx + 0x34], 0
je 0x1005f00d
test edx, 0x100f3000
je 0x1005f04f
test ecx, ecx
js 0x1005f0d9
fld qword [esp + 0x80]
fld qword [esp + 0xa8]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x1005f0d5
fcompp
fnstsw ax
test ah, 0x41
jp 0x1005f04f
fld qword [esp + 0x70]
fcomp qword [esp + 0x98]
fnstsw ax
test ah, 0x41
je 0x1005f0d9
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x40], 0
jne 0x1005f073
add dword [esp + 0x48], 0x50
add dword [esp + 0x20], 0x38
inc ebx
mov dword [esp + 0x4c], ebx
cmp ebx, dword [esp + 0x28]
jl 0x1005ee7b
dec dword [esp + 0x50]
jns 0x1005ee37
mov esi, dword [esp + 0x68]
test esi, 0x1000000
je 0x1005f092
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
and dword [esp + 0x30], esi
mov ebx, dword [ebp + 8]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
test esi, 0x200f0000
je 0x1005f0f8
mov edx, dword [ebx + 0x44]
mov dword [eax + 0x20], edx
inc dword [ebx + 0x44]
jmp 0x1005f103
fstp st(1)
fstp st(0)
mov ebx, dword [esp + 0x4c]
mov ecx, 0xa
lea esi, [esp + 0x90]
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], ebx
jmp 0x1005f053
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x20], 0xffffffff
mov eax, dword [esp + 0x44]
xor ecx, ecx
cmp dword [eax + 0x160], ecx
jle 0x1005f140
mov edx, dword [esp + 0x24]
mov edi, dword [ebp + 0xc]
add edx, edx
add edx, edx
add edx, edx
sub edx, dword [esp + 0x24]
mov edi, dword [edi + edx*8 + 0x20]
lea edx, [eax + 0x164]
lea esp, [esp]
cmp dword [edx], edi
je 0x1005f17a
inc ecx
add edx, 4
cmp ecx, dword [eax + 0x160]
jl 0x1005f130
xor eax, eax
xor edx, edx
fld1
mov ecx, dword [esp + 0x24]
fld qword [esp + 0x70]
not eax
and dword [esp + 0x18], eax
fcom st(1)
mov eax, dword [esp + 0x10]
mov byte [eax + 0x34], cl
not edx
and dword [esp + 0x1c], edx
fnstsw ax
fstp st(1)
test ah, 1
jne 0x1005f188
fmul qword [ebx + 0x1c0]
fstp qword [ebx + 0x1c0]
jmp 0x1005f18a
mov eax, 1
xor edx, edx
call fcn.1006cbb0
jmp 0x1005f144
fstp st(0)
mov eax, dword [ebp + 0xc]
lea edx, [ecx*8]
sub edx, ecx
mov eax, dword [eax + edx*8 + 0x3c]
test eax, eax
je 0x1005f1a6
test esi, 0xf0000
je 0x1005f204
mov eax, dword [esp + 0x38]
add dword [esp + 0x10], 0x50
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x28]
jl 0x1005edc0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x40], 0
jne 0x1005f215
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x1e], 0
jne 0x1005f215
mov eax, dword [esp + 0x30]
and eax, 0x4000000
je 0x1005f1e9
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1005f1e9
mov dword [ecx], 0
test byte [ebp + 0x18], 4
je 0x1005f23c
test eax, eax
je 0x1005f23c
mov ebx, dword [esp + 0x2c]
and dword [ebx + 0x30], 0xff7fffff
mov byte [ebx + 6], 1
jmp 0x1005f240
mov ecx, dword [eax]
push ecx
push str.cannot_use_index:__s
push ebx
call fcn.100062b0
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
fld qword [eax + 0x20]
mov ecx, dword [ebp + 8]
push eax
fstp qword [ecx + 0x1c0]
push edx
call fcn.1005eae0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x2c]
mov ecx, edx
mov eax, dword [ecx + 0x1a8]
test eax, eax
je 0x1005f252
mov dword [esp + 0x30], eax
jmp 0x1005f258
mov dword [esp + 0x30], ecx
mov eax, ecx
cmp dword [eax + 0x15c], 0
jne 0x1005f2b5
call fcn.1004d2f0
mov edi, eax
test edi, edi
je 0x1005f2b5
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0x20], esi
jg 0x1005f284
call fcn.1001faa0
test eax, eax
je 0x1005f284
mov esi, 1
jmp 0x1005f2aa
mov edx, dword [edi + 4]
inc dword [edi + 0x1c]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 1
mov byte [edi + 0x64], cl
mov eax, dword [esp + 0x30]
inc esi
mov dword [eax + 0x15c], esi
fld1
or eax, 0xffffffff
mov dword [esp + 0x18], eax
fstp qword [ebx + 0x28]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x1005f633
mov dword [esp + 0x48], eax
lea esp, [esp]
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx + 0x34]
fld qword [ecx + 8]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + edx*8 + 0x14]
lea edi, [eax + edx*8 + 8]
mov edx, dword [edi + 0x18]
mov dword [ecx + 0x1c], edx
mov eax, 0xfff0bdc0
fmul qword [ebx + 0x28]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
fstp qword [ebx + 0x28]
mov edx, dword [esi + 0x44]
test edx, edx
je 0x1005f350
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], ecx
test ecx, ecx
jle 0x1005f350
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 8]
add ecx, 0xc
cmp dword [ecx], edx
je 0x1005f34c
inc eax
add ecx, 0x10
cmp eax, dword [esp + 0x40]
jl 0x1005f33e
mov dword [esp + 0x24], eax
test byte [esi + 0x22], 2
jne 0x1005f4c2
cmp dword [esi + 0x1c], 0
jne 0x1005f4c2
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
test ecx, 0x8000000
je 0x1005f442
mov ebx, dword [esi + 0x34]
xor edx, edx
cmp ebx, edx
je 0x1005f38e
mov eax, dword [esp + 0x3c]
cmp dword [ebx], eax
je 0x1005f38e
mov ebx, dword [ebx + 0x10]
cmp ebx, edx
jne 0x1005f383
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x1c]
cmp dword [ecx + 0x20], esi
jg 0x1005f3bb
mov edi, ecx
call fcn.1001faa0
test eax, eax
je 0x1005f3b7
mov eax, 1
jmp 0x1005f3e6
mov ecx, edi
xor edx, edx
mov edi, dword [ecx + 4]
inc dword [ecx + 0x1c]
lea eax, [esi + esi*4]
lea eax, [edi + eax*4]
mov edi, dword [esp + 0x40]
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x7f
mov byte [ecx + 0x64], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
test esi, esi
je 0x1005f4c2
cmp byte [edi + 0x1e], 0
jne 0x1005f4c2
test eax, eax
jns 0x1005f409
mov eax, dword [ecx + 0x1c]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [esi + edx*4 + 1]
mov ecx, dword [esi + edx*4 + 0x10]
lea esi, [esi + edx*4]
call fcn.10020030
mov dword [esi + 0x10], 0
test ebx, ebx
jne 0x1005f433
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x1005f4c2
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xf6
inc dword [ebx + 0xc]
jmp 0x1005f4c2
test ecx, 0x800000
jne 0x1005f4ad
test byte [ebp + 0x18], 0x10
jne 0x1005f4ad
mov edx, dword [edi + 0x18]
xor ecx, ecx
cmp byte [ebx + 6], cl
setne cl
add ecx, 0x26
push ecx
push esi
push eax
mov eax, dword [ebp + 8]
push edx
call fcn.10042d50
add esp, 0x10
cmp byte [ebx + 6], 0
jne 0x1005f4c2
cmp dword [esi + 8], 0x40
jge 0x1005f4c2
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov esi, eax
xor edx, edx
or esi, ecx
je 0x1005f494
shrd eax, ecx, 1
shr ecx, 1
mov esi, eax
inc edx
or esi, ecx
jne 0x1005f487
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x1c]
push edx
push ecx
dec eax
mov ecx, 0xfffffff2
call fcn.10020280
add esp, 8
jmp 0x1005f4c2
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
push ecx
push 0
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.10037050
add esp, 0x10
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, 0x20000000
je 0x1005f4f9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.1005b910
add esp, 0x18
jmp 0x1005f5d2
test eax, 0xf0000
je 0x1005f5d2
mov edi, dword [esp + 0x10]
mov esi, dword [edi + 0x10]
mov ecx, dword [ebp + 8]
push esi
push ecx
call fcn.1003bdb0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x14]
mov esi, dword [ecx + 0x1c]
mov ebx, dword [edi + 0x20]
add esp, 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], edx
cmp dword [ecx + 0x20], esi
jg 0x1005f546
mov edi, ecx
call fcn.1001faa0
test eax, eax
je 0x1005f544
mov eax, 1
jmp 0x1005f579
mov ecx, edi
mov edx, dword [ecx + 4]
inc dword [ecx + 0x1c]
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x40]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x24]
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov word [eax], 0x26
mov byte [ecx + 0x64], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
xor ebx, ebx
cmp esi, ebx
je 0x1005f5c4
cmp byte [edi + 0x1e], bl
jne 0x1005f5c4
cmp eax, ebx
jge 0x1005f595
mov eax, dword [ecx + 0x1c]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.10020030
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x1005f5bb
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x1005f5d2
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x1005f5d2
mov ecx, dword [esp + 0x30]
mov eax, 0xfffffff0
call fcn.10020030
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 8]
push ecx
call fcn.1003b780
mov edx, dword [esp + 0x48]
mov edx, dword [edx + 4]
mov eax, dword [edx]
add esp, 4
xor ecx, ecx
test eax, eax
jle 0x1005f610
mov esi, dword [esp + 0x20]
mov esi, dword [esi + 0x18]
add edx, 4
jmp 0x1005f600
cmp dword [edx], esi
je 0x1005f6ba
inc ecx
add edx, 4
cmp ecx, eax
jl 0x1005f600
xor eax, eax
xor edx, edx
add dword [esp + 0x10], 0x50
mov ebx, dword [esp + 0x2c]
not eax
and dword [esp + 0x18], eax
not edx
and dword [esp + 0x1c], edx
dec dword [esp + 0x48]
jne 0x1005f2e0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x3c]
mov dword [ebx + 0xc], ecx
cmp byte [edx + 0x1e], 0
jne 0x1005f215
or ebx, 0xffffffff
xor esi, esi
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x28], esi
jle 0x1005f6af
mov edi, dword [esp + 0x2c]
add edi, 0x5c
mov eax, dword [ebp + 0x18]
movzx ecx, byte [edi + 8]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push esi
lea edx, [edi - 0x2c]
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.1005d6f0
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x40]
add esp, 0x14
push ecx
push ebx
push edx
push esi
push eax
call fcn.1005d960
mov ecx, dword [edi]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x40]
inc esi
add esp, 0x14
add edi, 0x50
mov ebx, eax
mov dword [edx + 0x10], ecx
cmp esi, dword [esp + 0x28]
jl 0x1005f661
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
xor edx, edx
call fcn.1006cbb0
jmp 0x1005f614